blob: c99b9dcfc5236fbbf6b22714f9e780309a4a6dfe [file] [log] [blame]
requires fragment_depth;
struct FragDepthAnyOutput {
@builtin(frag_depth, any) frag_depth : f32,
};
struct FragDepthLessOutput {
@builtin(frag_depth, less) frag_depth : f32,
};
struct FragDepthGreaterOutput {
@builtin(frag_depth, greater) frag_depth : f32,
};
@fragment
fn any() -> FragDepthAnyOutput { return FragDepthAnyOutput(1.0); }
@fragment
fn less() -> FragDepthLessOutput { return FragDepthLessOutput(1.0); }
@fragment
fn greater() -> FragDepthGreaterOutput { return FragDepthGreaterOutput(1.0); }