Add DXT3 texture format

This commit is contained in:
Jack Andersen
2019-03-02 20:16:12 -10:00
parent 66cf60ea55
commit af50240143
5 changed files with 26 additions and 2 deletions

View File

@@ -1315,6 +1315,11 @@ class VulkanTextureS : public GraphicsDataNode<ITextureS> {
m_pixelPitchNum = 1;
m_pixelPitchDenom = 2;
break;
case TextureFormat::DXT3:
pfmt = VK_FORMAT_BC2_UNORM_BLOCK;
m_pixelPitchNum = 1;
m_pixelPitchDenom = 1;
break;
default:
Log.report(logvisor::Fatal, "unsupported tex format");
}