summaryrefslogtreecommitdiffstats
path: root/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx-unit-test/get-buffer-resource-handle-test.cpp')
-rw-r--r--tools/gfx-unit-test/get-buffer-resource-handle-test.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp b/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp
index a143ac135..83c3f400d 100644
--- a/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp
+++ b/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp
@@ -61,10 +61,17 @@ void getBufferResourceHandleTestAPI(UnitTestContext* context, Slang::RenderApiFl
IDevice::Desc deviceDesc = {};
switch (api)
{
- case Slang::RenderApiFlag::D3D11: deviceDesc.deviceType = gfx::DeviceType::DirectX11; break;
- case Slang::RenderApiFlag::D3D12: deviceDesc.deviceType = gfx::DeviceType::DirectX12; break;
- case Slang::RenderApiFlag::Vulkan: deviceDesc.deviceType = gfx::DeviceType::Vulkan; break;
- default: SLANG_IGNORE_TEST;
+ case Slang::RenderApiFlag::D3D11:
+ deviceDesc.deviceType = gfx::DeviceType::DirectX11;
+ break;
+ case Slang::RenderApiFlag::D3D12:
+ deviceDesc.deviceType = gfx::DeviceType::DirectX12;
+ break;
+ case Slang::RenderApiFlag::Vulkan:
+ deviceDesc.deviceType = gfx::DeviceType::Vulkan;
+ break;
+ default:
+ SLANG_IGNORE_TEST;
}
deviceDesc.slang.slangGlobalSession = context->slangGlobalSession;
const char* searchPaths[] = {"", "../../tools/gfx-unit-test", "tools/gfx-unit-test"};