blob: 3f43c8cc73a05bab681ec77d408d4008b24d0905 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//TEST(smoke,compute):COMPARE_COMPUTE:
// This is a basic test for Slang compute shader.
RWStructuredBuffer<float> outputBuffer;
[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
{
outputBuffer[dispatchThreadID.x] = float(dispatchThreadID.x);
}
|