summaryrefslogtreecommitdiff
path: root/tools/gfx/resource-desc-utils.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-11-06 01:47:26 +0800
committerGitHub <noreply@github.com>2024-11-05 09:47:26 -0800
commitb118451e301d734e3e783b3acdf871f3f6ea851c (patch)
tree277f160d31e2c442f724bc6a2d3c09fabff403ca /tools/gfx/resource-desc-utils.cpp
parent53dd5928c35d5a5cb1f7d2a563348fd1fa87d672 (diff)
Move switch statement bodies to their own lines (#5493)
* Move switch statement bodies to their own lines * format --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools/gfx/resource-desc-utils.cpp')
-rw-r--r--tools/gfx/resource-desc-utils.cpp24
1 files changed, 16 insertions, 8 deletions
diff --git a/tools/gfx/resource-desc-utils.cpp b/tools/gfx/resource-desc-utils.cpp
index ab20c78a8..8d70d0487 100644
--- a/tools/gfx/resource-desc-utils.cpp
+++ b/tools/gfx/resource-desc-utils.cpp
@@ -22,14 +22,22 @@ 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