diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2025-06-05 13:18:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-05 13:18:42 -0700 |
| commit | 94215dcdcb8b9003c3e6d12308ea006e827febc9 (patch) | |
| tree | 7b6083b63c9f4baea2115f6cf71b3ccb5a2bcba2 /tests/render | |
| parent | 9b6e9de8f188222788fed0b1a36522ed33ab7f14 (diff) | |
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.
Diffstat (limited to 'tests/render')
| -rw-r--r-- | tests/render/check-backend-support-on-ci.slang | 20 |
1 files changed, 20 insertions, 0 deletions
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<float> gInput; + +//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=gOutput +RWStructuredBuffer<float> 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]; +} |
