FragDepth is a Write Property

FragDepth is written to in a fragment shader, not read.
This commit is contained in:
tfgast authored and Dzmitry Malyshau committed 2021-02-03 22:29:42 -05:00
1 parent bb88aac937
commit 71fdaedcec
1 file changed
+1 -1
+1 -1
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),