bevy/crates/bevy_render/src
dis-da-moe 8853bef6df implement TypeUuid for primitives and fix multiple-parameter generics having the same TypeUuid (#6633)
# Objective

- Fixes #5432 
- Fixes #6680

## Solution

- move code responsible for generating the `impl TypeUuid` from `type_uuid_derive` into a new function, `gen_impl_type_uuid`.
- this allows the new proc macro, `impl_type_uuid`, to call the code for generation.
- added struct `TypeUuidDef` and implemented `syn::Parse` to allow parsing of the input for the new macro.
- finally, used the new macro `impl_type_uuid` to implement `TypeUuid` for the standard library (in `crates/bevy_reflect/src/type_uuid_impl.rs`).
- fixes #6680 by doing a wrapping add of the param's index to its `TYPE_UUID`

Co-authored-by: dis-da-moe <84386186+dis-da-moe@users.noreply.github.com>
2023-02-16 17:09:44 +00:00
..
camera Improve OrthographicCamera consistency and usability (#6201) 2023-02-08 21:34:33 +00:00
color Fix clippy clamp warning (#7697) 2023-02-16 02:13:25 +00:00
mesh added subdivisions to shape::Plane (#7546) 2023-02-13 18:20:20 +00:00
primitives Derive Copy for Aabb (#7401) 2023-01-30 18:27:58 +00:00
render_graph Use position in code when possible (#7621) 2023-02-11 08:28:14 +00:00
render_phase implement TypeUuid for primitives and fix multiple-parameter generics having the same TypeUuid (#6633) 2023-02-16 17:09:44 +00:00
render_resource Changed &mut PipelineCache to &PipelineCache (#7598) 2023-02-10 11:17:18 +00:00
renderer Wgpu 0.15 (#7356) 2023-01-29 20:27:30 +00:00
texture Cleanup system sets called labels (#7678) 2023-02-14 21:46:07 +00:00
view Cleanup system sets called labels (#7678) 2023-02-14 21:46:07 +00:00
extract_component.rs Migrate engine to Schedule v3 (#7267) 2023-02-06 02:04:50 +00:00
extract_param.rs Migrate engine to Schedule v3 (#7267) 2023-02-06 02:04:50 +00:00
extract_resource.rs Migrate engine to Schedule v3 (#7267) 2023-02-06 02:04:50 +00:00
globals.rs Refactor Globals and View structs into separate shaders (#7512) 2023-02-11 17:55:18 +00:00
globals.wgsl Refactor Globals and View structs into separate shaders (#7512) 2023-02-11 17:55:18 +00:00
lib.rs Cleanup system sets called labels (#7678) 2023-02-14 21:46:07 +00:00
pipelined_rendering.rs Rename schedule v3 to schedule (#7519) 2023-02-06 18:44:40 +00:00
render_asset.rs Cleanup system sets called labels (#7678) 2023-02-14 21:46:07 +00:00
settings.rs add OpenGL and DX11 backends (#7481) 2023-02-04 23:20:20 +00:00
spatial_bundle.rs enum Visibility component (#6320) 2022-12-25 00:39:29 +00:00