yum-mirror/slang

Making it easier to work with shaders

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

Tim FoleyFix a crash when a generic value argument isn't constant (#1241)6308a1224

master
390 B12 linesraw
1// ray-flags-non-constant.slang
2
3// Regression test for a compiler crash occuring when a generic with integer
4// value parameters is specialized to a non-constant (and hence invalid) value.
5
6//TEST:SIMPLE:-target dxil-assembly -entry main -stage compute
7
8void main()
9{
10    RAY_FLAG rayFlags = RAY_FLAG_CULL_FRONT_FACING_TRIANGLES | RAY_FLAG_CULL_NON_OPAQUE;
11    RayQuery<rayFlags> query;
12}