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-unit-test/precompiled-module-2.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'tools/gfx-unit-test/precompiled-module-2.cpp') diff --git a/tools/gfx-unit-test/precompiled-module-2.cpp b/tools/gfx-unit-test/precompiled-module-2.cpp index 0a5ea3ac0..f5c478b4d 100644 --- a/tools/gfx-unit-test/precompiled-module-2.cpp +++ b/tools/gfx-unit-test/precompiled-module-2.cpp @@ -42,9 +42,14 @@ static Slang::Result precompileProgram( SlangCompileTarget target; switch (device->getDeviceInfo().deviceType) { - case gfx::DeviceType::DirectX12: target = SLANG_DXIL; break; - case gfx::DeviceType::Vulkan: target = SLANG_SPIRV; break; - default: return SLANG_FAIL; + case gfx::DeviceType::DirectX12: + target = SLANG_DXIL; + break; + case gfx::DeviceType::Vulkan: + target = SLANG_SPIRV; + break; + default: + return SLANG_FAIL; } ComPtr precompileService; -- cgit v1.2.3