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:
baldurk
2018-12-11 19:57:20 +00:00
parent 2411ce70ea
commit 68b23c5f62
17 changed files with 2726 additions and 1296 deletions
+4 -1
View File
@@ -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;
}