Fix AsBindGroup hygenic issues with storage texture. (#18640)
# Objective Fixes #18573
This commit is contained in:
parent
c44dd39bdd
commit
a895e87a28
@ -521,7 +521,7 @@ pub fn derive_as_bind_group(ast: syn::DeriveInput) -> Result<TokenStream> {
|
|||||||
binding_impls.insert(0, quote! {
|
binding_impls.insert(0, quote! {
|
||||||
( #binding_index,
|
( #binding_index,
|
||||||
#render_path::render_resource::OwnedBindingResource::TextureView(
|
#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();
|
let handle: Option<&#asset_path::Handle<#image_path::Image>> = (&self.#field_name).into();
|
||||||
if let Some(handle) = handle {
|
if let Some(handle) = handle {
|
||||||
|
Loading…
Reference in New Issue
Block a user