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

@@ -160,6 +160,12 @@ class D3D11TextureS : public GraphicsDataNode<ITextureS> {
pxPitchNum = 1;
pxPitchDenom = 2;
break;
case TextureFormat::DXT3:
pfmt = DXGI_FORMAT_BC2_UNORM;
compressed = true;
pxPitchNum = 1;
pxPitchDenom = 1;
break;
default:
Log.report(logvisor::Fatal, "unsupported tex format");
}