From 71fdaedcecdb32ae62b039533e772bd1535b53f3 Mon Sep 17 00:00:00 2001 From: tfgast Date: Wed, 3 Feb 2021 16:11:39 -0800 Subject: [PATCH] FragDepth is a Write Property FragDepth is written to in a fragment shader, not read. --- src/proc/validator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proc/validator.rs b/src/proc/validator.rs index 7febb7f531..f31606f40e 100644 --- a/src/proc/validator.rs +++ b/src/proc/validator.rs @@ -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),