From 52e314c68d2fbb0e4f5816aed9313e9373fc4443 Mon Sep 17 00:00:00 2001 From: charlotte Date: Mon, 31 Mar 2025 11:06:33 -0700 Subject: [PATCH] Fix AsBindGroup hygenic issues with storage texture. (#18640) # Objective Fixes #18573 --- crates/bevy_render/macros/src/as_bind_group.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_render/macros/src/as_bind_group.rs b/crates/bevy_render/macros/src/as_bind_group.rs index e44d87a3d4..d21bff4472 100644 --- a/crates/bevy_render/macros/src/as_bind_group.rs +++ b/crates/bevy_render/macros/src/as_bind_group.rs @@ -521,7 +521,7 @@ pub fn derive_as_bind_group(ast: syn::DeriveInput) -> Result { binding_impls.insert(0, quote! { ( #binding_index, #render_path::render_resource::OwnedBindingResource::TextureView( - #dimension, + #render_path::render_resource::#dimension, { let handle: Option<&#asset_path::Handle<#image_path::Image>> = (&self.#field_name).into(); if let Some(handle) = handle {