bevy/crates/bevy_render/src/render_resource
IceSentry 596eb48d8a
Add write_buffer_range to RawBufferVec and BufferVec (#19775)
# Objective

- Sometimes you only want to write parts of a buffer to the gpu instead
of reuploading the entire buffer. For example when doing data streaming.
- wgpu already supports this and you can do it manually from the user
side but it would be nice if it was built in.

## Solution

- Add `write_buffer_range()` to `RawBufferVec` and `BufferVec` that will
only upload the data contained in the specified range

## Testing

- I did not test it in bevy, but this implementation is copied from
something I used and tested at work
2025-06-24 00:33:41 +00:00
..
batched_uniform_buffer.rs Fix *most* clippy lints (#15906) 2024-10-14 20:52:35 +00:00
bind_group_entries.rs Add more wgpu helpers/types (#19548) 2025-06-09 04:54:02 +00:00
bind_group_layout_entries.rs Add more wgpu helpers/types (#19548) 2025-06-09 04:54:02 +00:00
bind_group_layout.rs refactor(render): move WgpuWrapper into bevy_utils (#19303) 2025-05-27 03:43:49 +00:00
bind_group.rs refactor(render): move WgpuWrapper into bevy_utils (#19303) 2025-05-27 03:43:49 +00:00
bindless.rs Add bindless support back to ExtendedMaterial. (#18025) 2025-04-09 15:34:44 +00:00
buffer_vec.rs Add write_buffer_range to RawBufferVec and BufferVec (#19775) 2025-06-24 00:33:41 +00:00
buffer.rs refactor(render): move WgpuWrapper into bevy_utils (#19303) 2025-05-27 03:43:49 +00:00
gpu_array_buffer.rs Add newlines before impl blocks (#19746) 2025-06-22 23:07:02 +00:00
mod.rs Add more wgpu helpers/types (#19548) 2025-06-09 04:54:02 +00:00
pipeline_cache.rs Fixing running ci locally in MacOS (#19619) 2025-06-13 14:51:28 +00:00
pipeline_specializer.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-11 23:13:28 +00:00
pipeline.rs refactor(render): move WgpuWrapper into bevy_utils (#19303) 2025-05-27 03:43:49 +00:00
resource_macros.rs bevy_render: Apply #![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)] (#17194) 2025-01-06 23:10:58 +00:00
shader.rs Use embedded_asset to load PBR shaders (#19137) 2025-05-16 05:47:34 +00:00
storage_buffer.rs Update render_resource gpu buffer doc comments (#17118) 2025-01-28 05:13:04 +00:00
texture.rs refactor(render): move WgpuWrapper into bevy_utils (#19303) 2025-05-27 03:43:49 +00:00
uniform_buffer.rs Use target_abi = "sim" instead of ios_simulator feature (#17702) 2025-02-11 23:01:26 +00:00