Add support for non-compressed formats in DDS shell preview

This commit is contained in:
baldurk
2020-04-01 16:55:58 +01:00
parent 1cdb617cf9
commit 6f2dfc1a2b
4 changed files with 251 additions and 99 deletions
+2
View File
@@ -319,6 +319,8 @@ ResourceFormat DXGIFormat2ResourceFormat(DXGI_FORMAT format)
return special;
case DXGI_FORMAT_A8_UNORM:
special.type = ResourceFormatType::A8;
special.compType = CompType::UNorm;
special.compByteWidth = 1;
special.compCount = 1;
return special;
case DXGI_FORMAT_B4G4R4A4_UNORM: