yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
2e7e2b568
master
1//TEST:SIMPLE(filecheck=CHECK): -target spirv -emit-spirv-directly -entry main -stage compute 2//TEST:SIMPLE(filecheck=CHECK_IGNORE_CAPS): -target spirv -emit-spirv-directly -entry main -stage compute -ignore-capabilities 3// CHECK_IGNORE_CAPS-NOT: error 36108 4 5// Check that a non-static member method implictly requires capabilities 6// defined in ThisType. 7 8//CHECK: error 36108: {{.*}} 'glsl'. 9//CHECK: note: see using of 'Type' 10[require(hlsl)] 11struct Type 12{ 13 int member; 14 [require(glsl)] 15 [mutating] 16 void f() 17 { 18 } 19 20 [require(glsl)] 21 static void f1() 22 { 23 } 24} 25 26void main() 27{}