From 94215dcdcb8b9003c3e6d12308ea006e827febc9 Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Thu, 5 Jun 2025 13:18:42 -0700 Subject: Check the supported backends in CI (#7346) slang-test is ran with a simple test, tests/render/check-backend-support-on-ci.slang. And the github CI,yaml will check if certain keywords are found. This is to prevent the regression on the CI server where a set of backend was supported at some point and it stopped supporting it siliently. --- tests/render/check-backend-support-on-ci.slang | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/render/check-backend-support-on-ci.slang (limited to 'tests/render') diff --git a/tests/render/check-backend-support-on-ci.slang b/tests/render/check-backend-support-on-ci.slang new file mode 100644 index 000000000..c0e2fbae3 --- /dev/null +++ b/tests/render/check-backend-support-on-ci.slang @@ -0,0 +1,20 @@ +//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHK): -shaderobj -output-using-type + +//TEST_INPUT:ubuffer(data=[1.0 2.0 3.0 4.0], stride=4):name=gInput +RWStructuredBuffer gInput; + +//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=gOutput +RWStructuredBuffer gOutput; + +//CHK:1 +//CHK-NEXT:2 +//CHK-NEXT:3 +//CHK-NEXT:4 + +[Shader("compute")] +[NumThreads(4, 1, 1)] +void computeMain(int3 dispatchThreadID : SV_DispatchThreadID) +{ + uint tid = dispatchThreadID.x; + gOutput[tid] = gInput[tid]; +} -- cgit v1.2.3