Jump to content
  • Advertisement
Sign in to follow this  
ucfchuck

[SLIMDX] texture3d.map issue

This topic is 3058 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

so i had to create a 3d texture to hold several frames of raw data for some gpu postprocesing, its 512x64x16 of r16g16b16a16_unorm though i was hoping to change that to _sint basically i map it with databox mtex = texture.map(0, writediscard, none) mtex.data.writerange<short>(framedata, frame.length*framenum, frame.length); the frame.length is 131072 and framenum cycles upto 15 it fails once framenum>0 and tells me the position an the data length to write go past the length of the buffer. if iam debugging in vs and break atthe writerange and probe mtex it says its size is 16777216 bytes and the rowpitch is 4096 and slicepitch is 262144 since there are 32768 point per slice and 8 bytes per point 262144 works out but then x16 frames is 4194304 so where does the extra x4 come in to get to 16777216? i kept thinnking i was adressing it wrong in the .map and that maybe subresources were slices but no, i dont get how to map a 3d texture and i cat find examples, what am i doing wrong?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!