Jump to content
  • Advertisement
Sign in to follow this  
Pacome

[D3D10] How to take a screenshot with multisampling

This topic is 3790 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

Hello, I would like to take a screenshot of a D3D10 backbuffer with multisampling. I know how to do this *without* multisampling and using a temp texture : - Get the backbuffer : m_swapChain->GetBuffer(...) - Use ID3D10Device::CopyResource to copy the backbuffer into a texture (which has been created in STAGING mode in order to be mapped) - Use ID3D10Texture2D::Map to get the RGBA buffer from the copied texture. It works very fine *without* multisampling. But the function CopyResource doesn't work with multisampled textures/buffers, as MSDN said. MSDN said that D3D 10.1 will allow using CopyResource with multisampled textures, but my card doesn't support the 10.1 version for the moment. So, is there a way to access backbuffer memory without using CopyResource ? Maybe I'm totally wrong and there is a nice way to take a screenshot with D3D10 ? Thanks a lot for your help Pacôme

Share this post


Link to post
Share on other sites
Advertisement
For people who have the same problem, here is the solution given on a french forum : the method ID3D10Device::ResolveSubresource is the only one which can "resolve" a multisampled resource in order to copy/use it as a classic resource.

Pacôme

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.

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

Sign me up!