Hey folks, I'm flummoxed here. I've got the following rust material and it's corresponding shader. For some reason I get the following error, and I'm not sure how to debug it. From what I can tell the rust struct and the shader uniform definition match up.
I'm hazy on what the exact role of the different values for group and binding mean so if anyone could help enlighten me there that would help me a lot 🙂
In Device::create_render_pipeline
note: label = `transparent_mesh2d_pipeline`
error matching FRAGMENT shader requirements against the pipeline
shader global ResourceBinding { group: 1, binding: 0 } is not available in the layout pipeline layout
buffer structure size 16, added to one element of an unbound array, if it's the last field, ended up greater than the given `min_binding_size```
Material Def:
```rs
#[derive(AsBindGroup, Clone, TypeUuid, Debug)]
#[uuid = "e0285780-cb09-46a0-9b59-8e449e737193"]
pub struct RadialMiningIndicatorMaterial {
// #[uniform(0)]
// pub inner_radius: f32,
// #[uniform(1)]
// pub thickness: f32,
#[uniform(0)]
pub threshold_1: f32,
#[uniform(1)]
pub threshold_2: f32,
/// A value encapsulating the currentTemp/topOfMiningRange
#[uniform(2)]
pub value: f32,
#[uniform(3)]
pub color_low: Color,
#[uniform(4)]
pub color_mid: Color,
#[uniform(5)]
pub color_high: Color,
}
impl Material2d for RadialMiningIndicatorMaterial {
fn fragment_shader() -> ShaderRef {
"shaders/radial_mining.wgsl".into()
}
}