yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
adaea0e99
master
1// generic-uint-value-param.slang 2 3//DIAGNOSTIC_TEST:SIMPLE: 4 5// Regression test to confirm that type checker 6// doesn't report warnings for these constant coercions. 7 8struct BoolG<let v : bool> 9{ } 10 11struct Test<let v : uint> 12{ 13 int arr[v]; 14} 15 16static const uint uv = 5; 17 18void t() 19{ 20 BoolG<true> gt; 21 BoolG<bool(1)> gt2; 22 BoolG<1 != 2> gt3; 23 Test<uv> v; 24}