summaryrefslogtreecommitdiff
path: root/source/slang/slang-core-module-textures.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 /source/slang/slang-core-module-textures.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 'source/slang/slang-core-module-textures.cpp')
-rw-r--r--source/slang/slang-core-module-textures.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/source/slang/slang-core-module-textures.cpp b/source/slang/slang-core-module-textures.cpp
index 8198fa1db..0d20cc1dd 100644
--- a/source/slang/slang-core-module-textures.cpp
+++ b/source/slang/slang-core-module-textures.cpp
@@ -274,7 +274,9 @@ void TextureTypeInfo::writeGetDimensionFunctions()
sizeDimCount = 3;
break;
- default: assert(!"unexpected"); break;
+ default:
+ assert(!"unexpected");
+ break;
}
if (isArray)
@@ -352,7 +354,9 @@ void TextureTypeInfo::writeGetDimensionFunctions()
cc = 3;
break;
- default: SLANG_UNEXPECTED("unhandled resource shape"); break;
+ default:
+ SLANG_UNEXPECTED("unhandled resource shape");
+ break;
}
if (isArray)
@@ -429,7 +433,9 @@ void TextureTypeInfo::writeGetDimensionFunctions()
};
switch (baseShape)
{
- case SLANG_TEXTURE_1D: extractSizeComponent(0, "width"); break;
+ case SLANG_TEXTURE_1D:
+ extractSizeComponent(0, "width");
+ break;
case SLANG_TEXTURE_2D:
case SLANG_TEXTURE_CUBE:
@@ -443,7 +449,9 @@ void TextureTypeInfo::writeGetDimensionFunctions()
extractSizeComponent(2, "depth");
break;
- default: assert(!"unexpected"); break;
+ default:
+ assert(!"unexpected");
+ break;
}
if (isArray)