I am following the custom vertex attribute example to get a simple vertex shader going but i get some shader errors that i dont really understand.
This is the example:https://bevyengine.org/examples/Shaders/custom-vertex-attribute/ and a link to the shader https://github.com/bevyengine/bevy/blob/main/assets/shaders/custom_vertex_attribute.wgsl.
When i run my program i get this error:
2023-11-23T23:33:37.655063Z ERROR log: Handling wgpu errors as fatal by default
thread 'Compute Task Pool (4)' panicked at 'wgpu error: Validation Error
Caused by:
In Device::create_render_pipeline
note: label = `transparent_mesh2d_pipeline`
Error matching ShaderStages(VERTEX) shader requirements against the pipeline
Shader global ResourceBinding { group: 2, binding: 0 } is not available in the layout pipeline layout
Buffer structure size 144, added to one element of an unbound array, if it's the last field, ended up greater than the given `min_binding_size`
', C:\Users\Leonard\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.17.2\src\backend\direct.rs:3056:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_render::render_resource::pipeline_cache::PipelineCache::process_pipeline_queue_system`!
thread 'Compute Task Pool (4)' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', C:\Users\Leonard\.cargo\registry\src\index.crates.io-6f17d22bba15001f\bevy_render-0.12.0\src\pipelined_rendering.rs:145:45
From what i understand, something requires a resource on group 2 binding 0 but its not there. However from the example i dont see where anything like that would be defined. The mesh position and the custom attribute are defined at location 0 and 1 but nothing on location 2.
I dont really understand how to debug this.