summaryrefslogtreecommitdiffstats
path: root/tests/cross-compile/fxc-error.hlsl
blob: a8d55fbe7c7654d097d4c7547c7ab40bff751e42 (plain)
1
2
3
4
5
6
7
8
9
//TEST(fxc):SIMPLE:-pass-through fxc -target dxbc -entry computeMain -stage compute -profile sm_5_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;
}