From 0747e5e8108642829f30dffe56fedfe8f4149bb5 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Sat, 5 Feb 2022 23:58:01 -0500 Subject: [PATCH] msl: fix resource bindings for non-structures --- src/back/msl/writer.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/back/msl/writer.rs b/src/back/msl/writer.rs index f341a38ff2..4546309e94 100644 --- a/src/back/msl/writer.rs +++ b/src/back/msl/writer.rs @@ -2884,10 +2884,9 @@ impl Writer { if let Some(ref br) = var.binding { let good = match options.per_stage_map[ep.stage].resources.get(br) { Some(target) => match module.types[var.ty].inner { - crate::TypeInner::Struct { .. } => target.buffer.is_some(), crate::TypeInner::Image { .. } => target.texture.is_some(), crate::TypeInner::Sampler { .. } => target.sampler.is_some(), - _ => false, + _ => target.buffer.is_some(), }, None => false, };