Move DXGI_FORMAT definition into separate namespace to make it compatible to existing definitions

This commit is contained in:
Jan
2024-01-06 20:41:50 +01:00
parent cd53c3cbe4
commit 44b0f4da5e
8 changed files with 160 additions and 155 deletions

View File

@ -39,13 +39,13 @@ class DdsWriterInternal
// Use standard pixel format for DXT1-5 for maximum compatibility and only otherwise use DX10 extension
switch (format->GetDxgiFormat())
{
case DXGI_FORMAT_BC1_UNORM:
case oat::DXGI_FORMAT_BC1_UNORM:
pf.dwFourCC = MakeFourCc('D', 'X', 'T', '1');
break;
case DXGI_FORMAT_BC2_UNORM:
case oat::DXGI_FORMAT_BC2_UNORM:
pf.dwFourCC = MakeFourCc('D', 'X', 'T', '3');
break;
case DXGI_FORMAT_BC3_UNORM:
case oat::DXGI_FORMAT_BC3_UNORM:
pf.dwFourCC = MakeFourCc('D', 'X', 'T', '5');
break;
default: