blob: 451d982f26689ba83b085500cd9cf0b43e2ec9d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//TEST(compute):COMPARE_COMPUTE: -output-using-type
//TEST_INPUT:ubuffer(data=[0], stride=4):out,name=outputBuffer
RWStructuredBuffer<int> outputBuffer;
static const int c = (int8_t)255;
[numthreads(1, 1, 1)]
void computeMain(int3 dispatchThreadID : SV_DispatchThreadID)
{
int tid = dispatchThreadID.x;
int inVal = tid;
int outVal = c;
outputBuffer[tid] = outVal;
}
|