bevy/crates/bevy_render/src/render_resource
JMS55 a8ee620b96 Bind only the written parts of storage buffers. (#16405)
# Objective
- Fix part of #15920

## Solution

- Keep track of the last written amount of bytes, and bind only that
much of the buffer.

## Testing

- Did you test these changes? If so, how? No
- Are there any parts that need more testing?
- How can other people (reviewers) test your changes? Is there anything
specific they need to know?
- If relevant, what platforms did you test these changes on, and are
there any important ones you can't test?

---

## Migration Guide

- Fixed a bug with StorageBuffer and DynamicStorageBuffer binding data
from the previous frame(s) due to caching GPU buffers between frames.
2024-11-17 18:39:34 +01:00
..
batched_uniform_buffer.rs Fix *most* clippy lints (#15906) 2024-10-14 20:52:35 +00:00
bind_group_entries.rs More #[doc(fake_variadic)] goodness (#16108) 2024-10-27 21:18:18 +01:00
bind_group_layout_entries.rs More #[doc(fake_variadic)] goodness (#16108) 2024-10-27 21:18:18 +01:00
bind_group_layout.rs Remove render_resource_wrapper (#15441) 2024-09-30 17:37:07 +00:00
bind_group.rs Don't reëxport bevy_image from bevy_render (#16163) 2024-11-11 22:16:38 +01:00
buffer_vec.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
buffer.rs Remove render_resource_wrapper (#15441) 2024-09-30 17:37:07 +00:00
gpu_array_buffer.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
mod.rs Fix oit webgl (#15728) 2024-10-08 14:50:35 +00:00
pipeline_cache.rs Expose Pipeline Compilation Zero Initialize Workgroup Memory Option (#16301) 2024-11-11 22:14:07 +01:00
pipeline_specializer.rs Remove thiserror from bevy_render (#15765) 2024-10-09 14:26:28 +00:00
pipeline.rs Expose Pipeline Compilation Zero Initialize Workgroup Memory Option (#16301) 2024-11-11 22:14:07 +01:00
resource_macros.rs Remove render_resource_wrapper (#15441) 2024-09-30 17:37:07 +00:00
shader.rs Remove thiserror from bevy_render (#15765) 2024-10-09 14:26:28 +00:00
storage_buffer.rs Bind only the written parts of storage buffers. (#16405) 2024-11-17 18:39:34 +01:00
texture.rs Split off bevy_image from bevy_render (#15650) 2024-10-04 20:16:47 +00:00
uniform_buffer.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00