blob: 8d73d7a1c8e71f9dc4c4c0fb4b389802354bfa94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//DIAGNOSTIC_TEST(dxc):SIMPLE(filecheck=CHECK):-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;
// CHECK: : tests/cross-compile/dxc-error.hlsl([[#@LINE-1]]): error : use of undeclared identifier 'gOutputBuffer'
// CHECK-NEXT: : note : gOutputBuffer[tid] = dispatchThreadID.x * 0.5f;
// CHECK-NEXT: : note : ^
}
|