From cd271a6be731be7c591e2b392371e546c9a24d8b Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Fri, 26 Dec 2025 21:33:06 -0700 Subject: [PATCH] fix(core): compare fragment input indices against `maxInterStageShaderVariables` directly, not `max_fragment_input_variables` --- wgpu-core/src/validation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-core/src/validation.rs b/wgpu-core/src/validation.rs index 2955f7491..0e0c4578a 100644 --- a/wgpu-core/src/validation.rs +++ b/wgpu-core/src/validation.rs @@ -1597,7 +1597,7 @@ impl Interface { for output in entry_point.inputs.iter() { match *output { Varying::Local { ref iv, location } => { - if location >= max_fragment_shader_input_variables { + if location >= self.limits.max_inter_stage_shader_variables { return Err(StageError::FragmentInputLocationTooLarge { location, var: iv.clone(),