yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
2768e429e
master
1//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage fragment -entry main -emit-spirv-directly 2 3// Test that a fragment shader that does not modify depth does not 4// have a DepthReplacing decoration. 5 6struct PSOut 7{ 8 float4 color : SV_Target; 9} 10// CHECK-NOT: OpExecutionMode {{.*}} DepthReplacing 11 12// Using SV_Position does not cause us generate DepthReplacing. 13PSOut main(float4 pos : SV_Position) 14{ 15 PSOut psout; 16 psout.color = pos; 17 return psout; 18}