#[derive(Asset, Clone, Reflect, AsBindGroup)]
pub struct OutlineMaterial {
#[uniform(0)]
pub color: Vec4,
#[storage(1)]
pub(crate) map_texture: Vec<u32>,
#[texture(2)]
#[sampler(3)]
pub texture: Handle<Image>,
}
This is my code, and its error is:
mismatched types
expected reference `&bevy::prelude::Handle<ShaderStorageBuffer>`
found reference `&std::vec::Vec<u32>`
I think there should be a problem with this
#[storage(1)]
pub(crate) map_texture: Vec<u32>,
But how should I fix it? This code was found in other open source projects, but that project relies on bevy0.12, so it may have been modified by bevy in the future. What should I do?