From b118451e301d734e3e783b3acdf871f3f6ea851c Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Wed, 6 Nov 2024 01:47:26 +0800 Subject: Move switch statement bodies to their own lines (#5493) * Move switch statement bodies to their own lines * format --------- Co-authored-by: Yong He --- tools/gfx/resource-desc-utils.cpp | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'tools/gfx/resource-desc-utils.cpp') 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 -- cgit v1.2.3