Fix AsBindGroup hygenic issues with storage texture. (#18640)

# Objective

Fixes #18573
This commit is contained in:
charlotte 2025-03-31 11:06:33 -07:00 committed by François Mockers
parent b9ee68a5bb
commit 52e314c68d

View File

@ -521,7 +521,7 @@ pub fn derive_as_bind_group(ast: syn::DeriveInput) -> Result<TokenStream> {
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 {