diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/pipeline/ray-tracing/raygen.slang | 15 | ||||
| -rw-r--r-- | tests/pipeline/ray-tracing/raygen.slang.expected.txt | 5 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/pipeline/ray-tracing/raygen.slang b/tests/pipeline/ray-tracing/raygen.slang new file mode 100644 index 000000000..1b13a63c2 --- /dev/null +++ b/tests/pipeline/ray-tracing/raygen.slang @@ -0,0 +1,15 @@ +// raygen.slang + +//TEST:COMPARE_COMPUTE_EX:-cuda -rt -output-using-type -compute-dispatch 4,1,1 + +//TEST_INPUT:ubuffer(data=[0 0 0 0],stride=4):name gOutput,out + +RWStructuredBuffer<int> gOutput; + +[shader("raygeneration")] +void raygenMain() +{ + uint3 tid = DispatchRaysIndex(); + + gOutput[tid.x] = tid.x*11; +} diff --git a/tests/pipeline/ray-tracing/raygen.slang.expected.txt b/tests/pipeline/ray-tracing/raygen.slang.expected.txt new file mode 100644 index 000000000..3de5c2d29 --- /dev/null +++ b/tests/pipeline/ray-tracing/raygen.slang.expected.txt @@ -0,0 +1,5 @@ +type: int32_t +0 +11 +22 +33 |
