//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-vk -render-feature cooperative-vector -output-using-type -xslang -skip-spirv-validation //TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-dx12 -render-feature cooperative-vector -dx12-experimental -output-using-type -profile cs_6_9 -Xslang... -Xdxc -Vd -X. //TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-cpu -output-using-type // CHECK: type: int32_t // CHECK-NEXT: -1 // CHECK-NEXT: -2 // CHECK-NEXT: -3 // CHECK-NEXT: -4 //TEST_INPUT:ubuffer(data=[1 2 3 4], stride=4),name=input1 ByteAddressBuffer input1; //TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer RWStructuredBuffer outputBuffer; [numthreads(1, 1, 1)] void computeMain() { CoopVec vec1 = coopVecLoad<4, int32_t>(input1); CoopVec negVec = -vec1; for(int i = 0; i < negVec.getCount(); ++i) outputBuffer[i] = negVec[i]; }