yum-mirror/slang

Making it easier to work with shaders

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

Yong HeCompiler time evaluation of all int and bool operators. (#2376)d245c72f2

master
249 B15 linesraw
1// generic-arg.slang
2
3//DIAGNOSTIC_TEST:SIMPLE:
4
5// Test disambiguation of expression and generic app.
6
7namespace NS
8{
9    struct MyType<let u : int, let v : int>
10    {
11        int arr[u /(v+1-1)];
12    }
13}
14
15StructuredBuffer<NS.MyType<1, 3>> buffer;