From 9e3b0367cfd63f21a0519b61b6fd13e94dac1c51 Mon Sep 17 00:00:00 2001 From: Anders Leino Date: Tue, 15 Oct 2024 19:11:53 +0300 Subject: Enable WebGPU tests in CI (#5239) --- source/core/slang-render-api-util.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/core/slang-render-api-util.cpp') diff --git a/source/core/slang-render-api-util.cpp b/source/core/slang-render-api-util.cpp index 797d82cd7..9dff5e90c 100644 --- a/source/core/slang-render-api-util.cpp +++ b/source/core/slang-render-api-util.cpp @@ -267,9 +267,17 @@ static bool _canLoadSharedLibrary(const char* libName) #if SLANG_WINDOWS_FAMILY case RenderApiType::Vulkan: return _canLoadSharedLibrary("vulkan-1") || _canLoadSharedLibrary("vk_swiftshader"); case RenderApiType::WebGPU: +#if _DEBUG + // At the moment, some CI issue is preventing tests to run in Debug builds. + // As a work-around in order to allow us to enable tests in Release builds ASSP, + // we skip WebGPU tests in by returning false here. + // https://github.com/shader-slang/slang/issues/5233#issuecomment-2411380030 + return false; +#else return _canLoadSharedLibrary("webgpu_dawn") && _canLoadSharedLibrary("dxcompiler") && _canLoadSharedLibrary("dxil"); +#endif // if SLANG_DEBUG #elif SLANG_APPLE_FAMILY case RenderApiType::Vulkan: return true; case RenderApiType::Metal: return true; -- cgit v1.2.3