mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 22:50:19 +00:00
b11ee3ffb8
## Objective
The [`DrawMeshInstanced`] command in the example sets vertex buffer 0 twice, with two identical calls to:
```rs
pass.set_vertex_buffer(0, gpu_mesh.vertex_buffer.slice(..));
```
## Solution
Remove the second call as it is unecessary.
[`DrawMeshInstanced`]:
|
||
---|---|---|
.. | ||
animate_shader.rs | ||
compute_shader_game_of_life.rs | ||
shader_defs.rs | ||
shader_instancing.rs | ||
shader_material.rs | ||
shader_material_glsl.rs |