Fix AsBindGroup hygenic issues with storage texture. (#18640)
# Objective Fixes #18573
This commit is contained in:
parent
b9ee68a5bb
commit
52e314c68d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user