diff options
| author | Anders Leino <aleino@nvidia.com> | 2024-10-15 19:11:53 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-15 09:11:53 -0700 |
| commit | 9e3b0367cfd63f21a0519b61b6fd13e94dac1c51 (patch) | |
| tree | f35a6d53c25bb2b45cb295548361ca248e66e146 /source/core | |
| parent | be42eeed7d9e510fea93922c615f1801bc54f336 (diff) | |
Enable WebGPU tests in CI (#5239)
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/slang-render-api-util.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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; |
