mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Don't return DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM for float typeHint
* We almost always mean DXGI_FORMAT_R10G10B10A2_UNORM instead and the xr bias format is rarely used (so unlikely to be the right interpretation) and might not work at all.
This commit is contained in:
@@ -1101,8 +1101,6 @@ DXGI_FORMAT GetTypedFormat(DXGI_FORMAT f, CompType typeHint)
|
||||
{
|
||||
if(typeHint == CompType::UInt)
|
||||
return DXGI_FORMAT_R10G10B10A2_UINT;
|
||||
if(typeHint == CompType::Float)
|
||||
return DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM;
|
||||
return DXGI_FORMAT_R10G10B10A2_UNORM;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user