diff options
Diffstat (limited to 'tools/gfx-unit-test')
| -rw-r--r-- | tools/gfx-unit-test/compute-smoke.cpp | 5 | ||||
| -rw-r--r-- | tools/gfx-unit-test/gfx-test-util.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tools/gfx-unit-test/compute-smoke.cpp b/tools/gfx-unit-test/compute-smoke.cpp index 68925f1e0..5e14a2e00 100644 --- a/tools/gfx-unit-test/compute-smoke.cpp +++ b/tools/gfx-unit-test/compute-smoke.cpp @@ -97,6 +97,11 @@ namespace gfx_test Slang::makeArray<float>(11.0f, 12.0f, 13.0f, 14.0f)); } + SLANG_UNIT_TEST(computeSmokeD3D12) + { + runTestImpl(computeSmokeTestImpl, unitTestContext, Slang::RenderApiFlag::D3D12); + } + SLANG_UNIT_TEST(computeSmokeD3D11) { runTestImpl(computeSmokeTestImpl, unitTestContext, Slang::RenderApiFlag::D3D11); diff --git a/tools/gfx-unit-test/gfx-test-util.h b/tools/gfx-unit-test/gfx-test-util.h index f829d6d12..22b9b2fd3 100644 --- a/tools/gfx-unit-test/gfx-test-util.h +++ b/tools/gfx-unit-test/gfx-test-util.h @@ -108,6 +108,12 @@ namespace gfx_test SLANG_IGNORE_TEST } #endif + // Skip d3d11 tests when we don't have DXBC support as they're bound to + // fail without a backend compiler + if (api == Slang::RenderApiFlag::D3D11 && !SLANG_ENABLE_DXBC_SUPPORT) + { + SLANG_IGNORE_TEST + } try { renderDocBeginFrame(); |
