HiresTextures: Support loading BC7 (BPTC) from DDS files

This commit is contained in:
Stenzek committed 2017-08-01 11:59:38 +10:00
1 parent d18988f41e
commit 63305e9173
15 files changed
+44 -2

No files matched your search

@@ -31,6 +31,7 @@ size_t AbstractTexture::CalculateHostTextureLevelPitch(AbstractTextureFormat for
return static_cast<size_t>(std::max(1u, row_length / 4)) * 8;
case AbstractTextureFormat::DXT3:
case AbstractTextureFormat::DXT5:
case AbstractTextureFormat::BPTC:
return static_cast<size_t>(std::max(1u, row_length / 4)) * 16;
case AbstractTextureFormat::RGBA8:
default: