mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +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:
@@ -509,7 +509,10 @@ QString FormatElement::GenerateTextureBufferFormat(const TextureDescription &tex
|
||||
case ResourceFormatType::D16S8:
|
||||
case ResourceFormatType::D24S8:
|
||||
case ResourceFormatType::D32S8:
|
||||
case ResourceFormatType::YUV: baseType = lit("xint4"); break;
|
||||
case ResourceFormatType::YUV8: baseType = lit("xbyte4"); break;
|
||||
case ResourceFormatType::YUV10:
|
||||
case ResourceFormatType::YUV12:
|
||||
case ResourceFormatType::YUV16: baseType = lit("xshort4"); break;
|
||||
case ResourceFormatType::S8:
|
||||
case ResourceFormatType::Undefined: baseType = lit("xbyte"); break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user