//TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-vk -compute -shaderobj -output-using-type //TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-cpu -compute -shaderobj -output-using-type //TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-cuda -compute -shaderobj -output-using-type //TEST_INPUT:ubuffer(data=[0 0 0], stride=4):out,name outputBuffer RWStructuredBuffer outputBuffer; //TEST_INPUT:ubuffer(data=[200], stride=4):name input1 RWStructuredBuffer input1; //TEST_INPUT:ubuffer(data=[35000], stride=4):name input2 RWStructuredBuffer input2; //TEST_INPUT:ubuffer(data=[201], stride=4):name input3 RWStructuredBuffer input3; // // Tests unsigned to signed casts to wider int. // [numthreads(1, 1, 1)] void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) { uint index = dispatchThreadID.x; // BUF: 200 outputBuffer[index] = input1[0]; // BUF: 35000 outputBuffer[index + 1] = input2[0]; // BUF: 201 int16_t a = input3[0]; outputBuffer[index + 2] = a; }