blob: 06edbad26be699dc65989afd146fb61704c8ad3c (
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(log(double(i) + 1.0) * 100);
}
|