yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

ArielG-NVEnsure we do not have an `initExpr` on a `VarDecl` inside an `InterfaceDecl` (#7283)3ca27faa2

master
294 B15 linesraw
1//TEST:SIMPLE(filecheck=CHECK): -stage compute -entry computeMain -target spirv
2
3//CHECK: error 30623
4
5interface Bug
6{
7    static const int badVar = 0;
8}
9
10RWStructuredBuffer<int> b;
11[numthreads(1, 1, 1)]
12void computeMain(uint3 dispatchThreadID: SV_DispatchThreadID)
13{
14    b[0] = Bug::badVar;
15}