summaryrefslogtreecommitdiffstats
path: root/tests/wgsl/semantic-depth.slang
blob: 65b29600aa73a767539ce2fb133d9d9353534c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//TEST:SIMPLE(filecheck=WGSL): -target wgsl -stage fragment -entry main

//WGSL-DAG: @builtin(frag_depth)
//WGSL-DAG: @fragment

struct Out 
{
    float depth : SV_Depth;
};

Out main() 
{
    Out output;
    output.depth = 1.0;
    return output;
}