mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
HiresTextures: Support loading BC7 (BPTC) from DDS files
This commit is contained in:
parent
d18988f41e
commit
63305e9173
15 changed files with 44 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue