diff --git a/wgpu-core/src/binding_model.rs b/wgpu-core/src/binding_model.rs index 5f4dfb434..ec97568f0 100644 --- a/wgpu-core/src/binding_model.rs +++ b/wgpu-core/src/binding_model.rs @@ -847,11 +847,14 @@ impl Drop for BindGroup { impl BindGroup { pub(crate) fn raw(&self, guard: &SnatchGuard) -> Option<&A::BindGroup> { + // Clippy insist on writing it this way. The idea is to return None + // if any of the raw buffer is not valid anymore. for buffer in &self.used_buffer_ranges { - // Clippy insist on writing it this way. The idea is to return None - // if any of the raw buffer is not valid anymore. let _ = buffer.buffer.raw(guard)?; } + for texture in &self.used_texture_ranges { + let _ = texture.texture.raw(guard)?; + } self.raw.as_ref() } pub(crate) fn validate_dynamic_bindings(