diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-10-29 14:49:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-29 14:49:26 +0800 |
| commit | f65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 (patch) | |
| tree | ea1d61342cd29368e19135000ec2948813096205 /tools/gfx/resource-desc-utils.cpp | |
| parent | a729c15e9dce9f5116a38afc66329ab2ca4cea54 (diff) | |
format
* format
* Minor test fixes
* enable checking cpp format in ci
Diffstat (limited to 'tools/gfx/resource-desc-utils.cpp')
| -rw-r--r-- | tools/gfx/resource-desc-utils.cpp | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/tools/gfx/resource-desc-utils.cpp b/tools/gfx/resource-desc-utils.cpp index b36e765e5..ab20c78a8 100644 --- a/tools/gfx/resource-desc-utils.cpp +++ b/tools/gfx/resource-desc-utils.cpp @@ -22,22 +22,14 @@ Format srgbToLinearFormat(Format format) { switch (format) { - case Format::BC1_UNORM_SRGB: - return Format::BC1_UNORM; - case Format::BC2_UNORM_SRGB: - return Format::BC2_UNORM; - case Format::BC3_UNORM_SRGB: - return Format::BC3_UNORM; - case Format::BC7_UNORM_SRGB: - return Format::BC7_UNORM; - case Format::B8G8R8A8_UNORM_SRGB: - return Format::B8G8R8A8_UNORM; - case Format::B8G8R8X8_UNORM_SRGB: - return Format::B8G8R8X8_UNORM; - case Format::R8G8B8A8_UNORM_SRGB: - return Format::R8G8B8A8_UNORM; - default: - return format; + case Format::BC1_UNORM_SRGB: return Format::BC1_UNORM; + case Format::BC2_UNORM_SRGB: return Format::BC2_UNORM; + case Format::BC3_UNORM_SRGB: return Format::BC3_UNORM; + case Format::BC7_UNORM_SRGB: return Format::BC7_UNORM; + case Format::B8G8R8A8_UNORM_SRGB: return Format::B8G8R8A8_UNORM; + case Format::B8G8R8X8_UNORM_SRGB: return Format::B8G8R8X8_UNORM; + case Format::R8G8B8A8_UNORM_SRGB: return Format::R8G8B8A8_UNORM; + default: return format; } } -} +} // namespace gfx |
