yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
82418b16a
master
1//TEST:SIMPLE(filecheck=CHECK): -target spirv 2// CHECK: OpExecutionMode {{.*}} DepthReplacing 3// CHECK: OpExecutionMode %FS_WriteDepthGt DepthGreater 4// CHECK: OpExecutionMode %FS_WriteDepthLt DepthLess 5 6[shader("fragment")] 7void FS_WriteDepthGt(out float depth: SV_DepthGreaterEqual) 8{ 9 depth = 0.5; 10} 11 12[shader("fragment")] 13void FS_WriteDepthLt(out float depth: SV_DepthLessEqual) 14{ 15 depth = 0.5; 16}