yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
ad45062fc
master
1//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage fragment -entry main -emit-spirv-directly 2 3struct PSOut 4{ 5 float4 color : SV_Target; 6 float depth : SV_Depth; 7} 8// CHECK: OpExecutionMode {{.*}} DepthReplacing 9 10PSOut main() 11{ 12 PSOut psout; 13 psout.color = float4(1.0f, 0.0f, 0.0f, 1.0f); 14 psout.depth = 0.5f; 15 return psout; 16}