mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-31 11:51:04 +00:00
Handle 32-bit depth as floating point values
This commit is contained in:
@@ -63,7 +63,7 @@ float ConvertComponent(const ResourceFormat &fmt, byte *data)
|
||||
uint32_t *u32 = (uint32_t *)data;
|
||||
int32_t *i32 = (int32_t *)data;
|
||||
|
||||
if(fmt.compType == CompType::Float)
|
||||
if(fmt.compType == CompType::Float || fmt.compType == CompType::Depth)
|
||||
{
|
||||
return *(float *)u32;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user