summaryrefslogtreecommitdiffstats
path: root/tests/spirv/depth-replacing.slang
blob: df2ab17e135cf46ecf3fb71f4dd23c39941933b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage fragment -entry main -emit-spirv-directly

struct PSOut
{
    float4 color : SV_Target;
    float depth : SV_Depth;
}
// CHECK: OpExecutionMode {{.*}} DepthReplacing

PSOut main()
{
    PSOut psout;
    psout.color = float4(1.0f, 0.0f, 0.0f, 1.0f);
    psout.depth = 0.5f;
    return psout;
}