yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
ff064b9a0
master
1// Simple regression test for SPIRV compilation hang when there is cycle between unconditional branch and block. 2// The -g was necessary to reproduce the hang prior to fix for https://github.com/shader-slang/slang/issues/8669 3 4//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage fragment -entry main -g 5//CHECK: main 6//CHECK: OpBranch 7//CHECK: OpUnreachable 8 9layout(location = 0) out float4 output_color; 10[shader("fragment")] 11void main() 12{ 13 while (true) { 14 int i = 0; 15 } 16 output_color = float4(1, 2, 3, 4); 17}