yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
3b0de8b6e
master
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target spirv -entry main -stage compute 2 3extern static const int size = 1; 4 5struct V 6{ 7 // CHECK-DAG: ([[# @LINE+1]]): error 30070 8 int c[]; 9 int b[size]; 10 int a[]; 11} 12 13struct Q 14{ 15 // CHECK-DAG: ([[# @LINE+1]]): error 30070 16 V v1; 17 V v2; 18} 19 20[numthreads(1,1,1)] 21void main() 22{ 23 V v; 24 int i = 2; 25}