ResolveSubresource() Failing for non-R8G8B8A8_UNORM

Started by
0 comments, last by Dingleberry 8 years, 3 months ago

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.

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.

This topic is closed to new replies.

Advertisement