blob: 335856771c71c68232abd1f8b14bef159a8c3e74 (
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(min(1.0, double(i) / 2.0) * 100);
}
|