mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 00:41:07 +01:00
fix(core): compare fragment input indices against maxInterStageShaderVariables directly, not max_fragment_input_variables
This commit is contained in:
1 parent
3ce7366a2e
commit
cd271a6be7
1 file changed
+1
-1
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user