mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 17:36:36 +00:00
Add support for YUV resource formats
* We handle 4:4:4, 4:2:2, and 4:2:0, with packed, 2-plane and 3-plane formats, for 8, 10, 12, and 16 bit depths. * This covers most common formats but still leaves a few out - NV11, palettised formats, V208/V408 JPG formats.
This commit is contained in:
@@ -844,7 +844,10 @@ private:
|
||||
case ResourceFormatType::D32S8: compCount = 2; break;
|
||||
case ResourceFormatType::BC4:
|
||||
case ResourceFormatType::S8: compCount = 1; break;
|
||||
case ResourceFormatType::YUV:
|
||||
case ResourceFormatType::YUV8:
|
||||
case ResourceFormatType::YUV10:
|
||||
case ResourceFormatType::YUV12:
|
||||
case ResourceFormatType::YUV16:
|
||||
case ResourceFormatType::EAC:
|
||||
default: compCount = fmt.format.compCount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user