mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
msl: fix resource bindings for non-structures
This commit is contained in:
@@ -2884,10 +2884,9 @@ impl<W: Write> Writer<W> {
|
||||
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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user