Add DXT5/BPTC (BC3/BC7) texture formats

This commit is contained in:
2020-02-27 03:59:41 -05:00
parent 56a6b06210
commit 217031ebb9
5 changed files with 50 additions and 4 deletions

View File

@@ -1383,6 +1383,16 @@ class VulkanTextureS : public GraphicsDataNode<ITextureS> {
m_pixelPitchNum = 1;
m_pixelPitchDenom = 1;
break;
case TextureFormat::DXT5:
pfmt = VK_FORMAT_BC3_UNORM_BLOCK;
m_pixelPitchNum = 1;
m_pixelPitchDenom = 1;
break;
case TextureFormat::BPTC:
pfmt = VK_FORMAT_BC7_UNORM_BLOCK;
m_pixelPitchNum = 1;
m_pixelPitchDenom = 1;
break;
default:
Log.report(logvisor::Fatal, fmt("unsupported tex format"));
}