bevy/crates/bevy_render/src
Giacomo Stevanato 39cca41f3f
Make DynamicUniformBuffer::push accept an &T instead of T (#11373)
# Objective

- `DynamicUniformBuffer::push` takes an owned `T` but only uses a shared
reference to it
- This in turn requires users of `DynamicUniformBuffer::push` to
potentially unecessarily clone data

## Solution

- Have `DynamicUniformBuffer::push` take a shared reference to `T`

---

## Changelog

- `DynamicUniformBuffer::push` now takes a `&T` instead of `T`

## Migration Guide

- Users of `DynamicUniformBuffer::push` now need to pass references to
`DynamicUniformBuffer::push` (e.g. existing `uniforms.push(value)` will
now become `uniforms.push(&value)`)
2024-01-16 20:51:56 +00:00
..
batching Rename WorldQueryData & WorldQueryFilter to QueryData & QueryFilter (#10779) 2023-12-12 19:45:50 +00:00
camera Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
color Replace deprecated elements (#10991) 2023-12-16 02:25:12 +00:00
mesh assets should be kept on CPU by default (#11212) 2024-01-05 05:53:47 +00:00
primitives Use EntityHashMap whenever possible (#11353) 2024-01-15 15:51:17 +00:00
render_graph Reorder impl to be the same as the trait (#11076) 2023-12-24 17:43:55 +00:00
render_phase Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
render_resource Make DynamicUniformBuffer::push accept an &T instead of T (#11373) 2024-01-16 20:51:56 +00:00
renderer Fix perf degradation on web builds (#11227) 2024-01-06 19:40:13 +00:00
texture assets should be kept on CPU by default (#11212) 2024-01-05 05:53:47 +00:00
view Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
deterministic.rs Option to enable deterministic rendering (#11248) 2024-01-09 00:46:01 +00:00
extract_component.rs Rename WorldQueryData & WorldQueryFilter to QueryData & QueryFilter (#10779) 2023-12-12 19:45:50 +00:00
extract_instances.rs Rename WorldQueryData & WorldQueryFilter to QueryData & QueryFilter (#10779) 2023-12-12 19:45:50 +00:00
extract_param.rs Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
extract_resource.rs Allow optional extraction of resources from the main world (#10109) 2023-10-14 16:07:49 +00:00
globals.rs Unify FixedTime and Time while fixing several problems (#8964) 2023-10-16 01:57:55 +00:00
globals.wgsl Refactor Globals and View structs into separate shaders (#7512) 2023-02-11 17:55:18 +00:00
gpu_component_array_buffer.rs Reorder render sets, refactor bevy_sprite to take advantage (#9236) 2023-08-27 14:33:49 +00:00
instance_index.wgsl Work around naga/wgpu WGSL instance_index -> GLSL gl_InstanceID bug on WebGL2 (#9383) 2023-08-09 18:38:45 +00:00
lib.rs Async channel v2 (#10692) 2024-01-15 19:23:00 +00:00
maths.wgsl Use instancing for sprites (#9597) 2023-09-02 18:03:19 +00:00
pipelined_rendering.rs Remove unnecessary path prefixes (#10749) 2023-11-28 23:43:40 +00:00
render_asset.rs assets should be kept on CPU by default (#11212) 2024-01-05 05:53:47 +00:00
settings.rs Update to wgpu 0.18 (#10266) 2023-12-14 02:45:47 +00:00
spatial_bundle.rs Implement Clone for VisibilityBundle and SpatialBundle (#10394) 2023-11-07 21:25:00 +00:00