Jump to content
  • Advertisement
Sign in to follow this  

deferred contex, read from texture

This topic is 2087 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 in my D3D10 engine i loaded data on a separate thread.

I rendered on one thread, loaded on another, both using the same D3D10.device, everything working perfectly.


So, I switch to D3D11. Now, in my loading code, I need to Map a Staging texture.

(I keep my heightmap in a dds, I load it, then map it to access the texel data.)

Can't use the device for that anymore, you have to use a new class, the context.

Ok, so I tried that and my game crashes. Right, I need to be using a deferred context, not the immediate one.



If you call Map on a deferred context, you can only pass D3D11_MAP_WRITE_DISCARD, D3D11_MAP_WRITE_NO_OVERWRITE, or both to the MapType parameter. Other D3D11_MAP-typed values are not supported for a deferred context.





But I want to read from my loaded texture, ergo i need to specify D3D11_MAP_READ.

ok, so what do I do now?

Share this post

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

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!