summaryrefslogtreecommitdiffstats
path: root/tests/spirv/depth-replacing-gt-lt.slang
blob: 8e0ce6b7922eab2ce42e4394e172d940c88a233c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//TEST:SIMPLE(filecheck=CHECK): -target spirv
// CHECK: OpExecutionMode {{.*}} DepthReplacing
// CHECK: OpExecutionMode %FS_WriteDepthGt DepthGreater
// CHECK: OpExecutionMode %FS_WriteDepthLt DepthLess

[shader("fragment")]
void FS_WriteDepthGt(out float depth: SV_DepthGreaterEqual)
{
    depth = 0.5;
}

[shader("fragment")]
void FS_WriteDepthLt(out float depth: SV_DepthLessEqual)
{
    depth = 0.5;
}