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