bevy/examples/2d
JMS55 4bf20e7d27
Swap material and mesh bind groups (#10485)
# Objective
- Materials should be a more frequent rebind then meshes (due to being
able to use a single vertex buffer, such as in #10164) and therefore
should be in a higher bind group.

---

## Changelog
- For 2d and 3d mesh/material setups (but not UI materials, or other
rendering setups such as gizmos, sprites, or text), mesh data is now in
bind group 1, and material data is now in bind group 2, which is swapped
from how they were before.

## Migration Guide
- Custom 2d and 3d mesh/material shaders should now use bind group 2
`@group(2) @binding(x)` for their bound resources, instead of bind group
1.
- Many internal pieces of rendering code have changed so that mesh data
is now in bind group 1, and material data is now in bind group 2.
Semi-custom rendering setups (that don't use the Material or Material2d
APIs) should adapt to these changes.
2023-11-28 22:26:22 +00:00
..
2d_gizmos.rs Gizmo Arrows (#10550) 2023-11-15 14:19:15 +00:00
2d_shapes.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
2d_viewport_to_world.rs Add example for Camera::viewport_to_world (#7179) 2023-09-11 18:52:11 +00:00
bloom_2d.rs Update color and naming for consistency (#10367) 2023-11-04 02:09:23 +00:00
custom_gltf_vertex_attribute.rs Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
mesh2d_manual.rs Swap material and mesh bind groups (#10485) 2023-11-28 22:26:22 +00:00
mesh2d_vertex_color_texture.rs Fix intra-doc link warnings (#10445) 2023-11-08 14:33:46 +00:00
mesh2d.rs Fix intra-doc link warnings (#10445) 2023-11-08 14:33:46 +00:00
move_sprite.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
pixel_perfect.rs Update color and naming for consistency (#10367) 2023-11-04 02:09:23 +00:00
rotation.rs Unify FixedTime and Time while fixing several problems (#8964) 2023-10-16 01:57:55 +00:00
sprite_flipping.rs Update color and naming for consistency (#10367) 2023-11-04 02:09:23 +00:00
sprite_sheet.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
sprite.rs Update color and naming for consistency (#10367) 2023-11-04 02:09:23 +00:00
text2d.rs Fix animate_scale scaling z value in text2d example (#9769) 2023-09-13 19:25:44 +00:00
texture_atlas.rs Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
transparency_2d.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00