diff options
Diffstat (limited to 'tests/cooperative-vector/load-store-rwbyteaddressbuffer.slang')
| -rw-r--r-- | tests/cooperative-vector/load-store-rwbyteaddressbuffer.slang | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/cooperative-vector/load-store-rwbyteaddressbuffer.slang b/tests/cooperative-vector/load-store-rwbyteaddressbuffer.slang new file mode 100644 index 000000000..098ef8a5d --- /dev/null +++ b/tests/cooperative-vector/load-store-rwbyteaddressbuffer.slang @@ -0,0 +1,22 @@ +//DISABLE_TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-vk -xslang -skip-spirv-validation +//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-dx12 -dx12-experimental -use-dxil -output-using-type -profile cs_6_8 -Xslang... -Xdxc -Vd -X. +//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-cpu + +// CHECK: 1 +// CHECK-NEXT: 2 +// CHECK-NEXT: 3 +// CHECK-NEXT: 4 +// CHECK-NEXT: 5 + +//TEST_INPUT:ubuffer(data=[1 2 3 4 5]):name=input +RWByteAddressBuffer input; + +//TEST_INPUT:ubuffer(data=[0 0 0 0 0]):out,name=outputBuffer +RWByteAddressBuffer outputBuffer; + +[numthreads(1, 1, 1)] +void computeMain() +{ + let result = coopVecLoad<5, uint32_t>(input); + result.store(outputBuffer); +} |
