summaryrefslogtreecommitdiffstats
path: root/tools/gfx/d3d
diff options
context:
space:
mode:
authorlucy96chen <47800040+lucy96chen@users.noreply.github.com>2021-11-15 20:42:39 -0800
committerGitHub <noreply@github.com>2021-11-15 20:42:39 -0800
commit5a29c15cc3c227d9bb93a71cb50491a822d0ccf3 (patch)
tree52e0d92b617e0a79c04243370f36f26387d24929 /tools/gfx/d3d
parent914a3808ebefb0f7f0a728469a2ce6b56dfc316c (diff)
Add BGRA8 Unorm SRGB to the list of supported formats (#2016)
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools/gfx/d3d')
-rw-r--r--tools/gfx/d3d/d3d-util.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gfx/d3d/d3d-util.cpp b/tools/gfx/d3d/d3d-util.cpp
index 84b5de844..e2083d39e 100644
--- a/tools/gfx/d3d/d3d-util.cpp
+++ b/tools/gfx/d3d/d3d-util.cpp
@@ -166,6 +166,7 @@ D3D12_DEPTH_STENCILOP_DESC D3DUtil::translateStencilOpDesc(DepthStencilOpDesc de
case Format::R8G8_UNORM: return DXGI_FORMAT_R8G8_UNORM;
case Format::R8_UNORM: return DXGI_FORMAT_R8_UNORM;
case Format::B8G8R8A8_UNORM: return DXGI_FORMAT_B8G8R8A8_UNORM;
+ case Format::B8G8R8A8_UNORM_SRGB: return DXGI_FORMAT_B8G8R8A8_UNORM_SRGB;
case Format::R16G16B16A16_SNORM: return DXGI_FORMAT_R16G16B16A16_SNORM;
case Format::R16G16_SNORM: return DXGI_FORMAT_R16G16_SNORM;