Jump to content
  • Advertisement
Sign in to follow this  
Endemoniada

ResolveSubresource() Failing for non-R8G8B8A8_UNORM

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

Hi guys,

 

I am trying to convert to an HDR system but when I use any format other than R8G8B8A8_UNORM my call to ResolveSubresource() fails.

 

I get this error: ...Source Resource format is (0x2, R32G32B32A32_FLOAT). Resolve Format is (0x1c, R8G8B8A8_UNORM)

 

I made sure to create the resolve texture with R32G32B32A32_FLOAT.

 

I also made sure this doesn't fail: CheckMultisampleQualityLevels(DXGI_FORMAT_R32G32B32A32_FLOAT,...)

 

Now matter how I create the resolve texture it tells me it's format is R8G8B8A8_UNORM.

 

What can I do ? Thank you.

 

Share this post


Link to post
Share on other sites
Advertisement

ResolveSubresource is mainly for converting multisampled textures to non-multisampled textures, not converting HDR to RGBA8.

 

Make the pixel shader that needs your rgba8unorm data do a tone map operation on the source rgba32f texture.

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!