FragDepth is a Write Property

FragDepth is written to in a fragment shader, not read.
This commit is contained in:
tfgast
2021-02-03 16:11:39 -08:00
committed by Dzmitry Malyshau
parent bb88aac937
commit 71fdaedcec

View File

@@ -257,7 +257,7 @@ fn built_in_usage(built_in: crate::BuiltIn) -> (crate::ShaderStage, crate::Globa
Bi::Position => (Ss::Vertex, Gu::WRITE),
Bi::VertexIndex => (Ss::Vertex, Gu::READ),
Bi::FragCoord => (Ss::Fragment, Gu::READ),
Bi::FragDepth => (Ss::Fragment, Gu::READ),
Bi::FragDepth => (Ss::Fragment, Gu::WRITE),
Bi::FrontFacing => (Ss::Fragment, Gu::READ),
Bi::SampleIndex => (Ss::Fragment, Gu::READ),
Bi::SampleMaskIn => (Ss::Fragment, Gu::READ),