yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
00bd481e0
master
1//DIAGNOSTIC_TEST(dxc):SIMPLE(filecheck=CHECK):-pass-through dxc -target dxil -entry computeMain -stage compute -profile sm_6_1 2 3[ numthreads ( 4 , 1 , 1 )] 4void computeMain ( uint3 dispatchThreadID : SV_DispatchThreadID ) 5{ 6uint tid = dispatchThreadID . x ; 7// Error should be here... as gOutputBuffer is not defined... 8gOutputBuffer [ tid ] = dispatchThreadID . x * 0.5f ; 9// CHECK: : tests/cross-compile/dxc-error.hlsl([[#@LINE-1]]): error : use of undeclared identifier 'gOutputBuffer' 10// CHECK-NEXT: : note : gOutputBuffer[tid] = dispatchThreadID.x * 0.5f; 11// CHECK-NEXT: : note : ^ 12}