blob: 0e6b6e4897f914cad48f932d8e50e1e7acb32019 (
plain)
1
2
3
4
5
6
7
8
9
|
//DIAGNOSTIC_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;
}
|