diff options
| author | lucy96chen <47800040+lucy96chen@users.noreply.github.com> | 2021-11-15 20:42:39 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-15 20:42:39 -0800 |
| commit | 5a29c15cc3c227d9bb93a71cb50491a822d0ccf3 (patch) | |
| tree | 52e0d92b617e0a79c04243370f36f26387d24929 /tools/gfx/render.cpp | |
| parent | 914a3808ebefb0f7f0a728469a2ce6b56dfc316c (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/render.cpp')
| -rw-r--r-- | tools/gfx/render.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gfx/render.cpp b/tools/gfx/render.cpp index 6fef96f0b..293c5abcf 100644 --- a/tools/gfx/render.cpp +++ b/tools/gfx/render.cpp @@ -112,6 +112,7 @@ struct FormatInfoMap set(Format::R8G8_UNORM, SLANG_SCALAR_TYPE_FLOAT32, 2); set(Format::R8_UNORM, SLANG_SCALAR_TYPE_FLOAT32, 1); set(Format::B8G8R8A8_UNORM, SLANG_SCALAR_TYPE_FLOAT32, 4); + set(Format::B8G8R8A8_UNORM_SRGB, SLANG_SCALAR_TYPE_FLOAT32, 4); set(Format::R16G16B16A16_SNORM, SLANG_SCALAR_TYPE_FLOAT32, 4); set(Format::R16G16_SNORM, SLANG_SCALAR_TYPE_FLOAT32, 2); |
