//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]; }