yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
39522159c
master
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target hlsl -entry main -profile cs_6_0 2interface IFoo 3{ 4 int doThing(); 5} 6 7// CHECK: ([[#@LINE+1]]): error 45001: 8extern struct Foo : IFoo; 9// CHECK: ([[#@LINE+1]]): error 45001: 10extern static const int c; 11 12RWStructuredBuffer<int> output; 13 14void main() 15{ 16 Foo f; 17 output[0] = c + f.doThing(); 18}