blob: d466df6a1515e35f937e8fa713004164b4649658 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//TEST(compute):COMPARE_COMPUTE:-cpu -output-using-type
//TEST(compute):COMPARE_COMPUTE:-cuda -output-using-type
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
RWStructuredBuffer<int> outputBuffer;
[numthreads(4, 1, 1)]
void computeMain(in uint i : SV_GroupIndex)
{
outputBuffer[i] = int(trunc(double(i) + 0.5) * 100);
}
|