diff options
Diffstat (limited to 'source/slang/slang-core-module-textures.cpp')
| -rw-r--r-- | source/slang/slang-core-module-textures.cpp | 16 |
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) |
