Skip to content

Commit

Permalink
texconv/texassemble/texdiag: additional format aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Feb 22, 2018
1 parent 06816df commit cfc063b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Texassemble/texassemble.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ const SValue g_pFormats [] =

const SValue g_pFormatAliases [] =
{
{ L"RGBA", DXGI_FORMAT_R8G8B8A8_UNORM },
{ L"BGRA", DXGI_FORMAT_B8G8R8A8_UNORM },

{ L"FP16", DXGI_FORMAT_R16G16B16A16_FLOAT },
{ L"FP32", DXGI_FORMAT_R32G32B32A32_FLOAT },

Expand Down
3 changes: 3 additions & 0 deletions Texconv/texconv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ const SValue g_pFormatAliases[] =
{ L"DXT4", DXGI_FORMAT_BC3_UNORM },
{ L"DXT5", DXGI_FORMAT_BC3_UNORM },

{ L"RGBA", DXGI_FORMAT_R8G8B8A8_UNORM },
{ L"BGRA", DXGI_FORMAT_B8G8R8A8_UNORM },

{ L"FP16", DXGI_FORMAT_R16G16B16A16_FLOAT },
{ L"FP32", DXGI_FORMAT_R32G32B32A32_FLOAT },

Expand Down
3 changes: 3 additions & 0 deletions Texdiag/texdiag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ const SValue g_pFormats[] =

const SValue g_pFormatAliases [] =
{
{ L"RGBA", DXGI_FORMAT_R8G8B8A8_UNORM },
{ L"BGRA", DXGI_FORMAT_B8G8R8A8_UNORM },

{ L"FP16", DXGI_FORMAT_R16G16B16A16_FLOAT },
{ L"FP32", DXGI_FORMAT_R32G32B32A32_FLOAT },

Expand Down

0 comments on commit cfc063b

Please sign in to comment.