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

// Test that a fragment shader that does not modify depth does not
// have a DepthReplacing decoration.

struct PSOut
{
    float4 color : SV_Target;
}
// CHECK-NOT: OpExecutionMode {{.*}} DepthReplacing

// Using SV_Position does not cause us generate DepthReplacing.
PSOut main(float4 pos : SV_Position)
{
    PSOut psout;
    psout.color = pos;
    return psout;
}