blob: fb22907c668634725c2e017a7300da3c62c79f46 (
plain)
1
2
3
4
5
6
7
8
9
|
//TEST(dxc):SIMPLE:-pass-through dxc -target dxil -entry computeMain -stage compute -profile sm_6_1
[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
{
uint tid = dispatchThreadID.x;
// Error should be here... as gOutputBuffer is not defined...
gOutputBuffer[tid] = dispatchThreadID.x * 0.5f;
}
|