mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 22:50:19 +00:00
e62a01f403
# Objective Fixes #12727. All parts that `PersistentGpuBuffer` interact with should be 100% safe both on the CPU and the GPU: `Queue::write_buffer_with` zeroes out the slice being written to and when uploading to the GPU, and all slice writes are bounds checked on the CPU side. ## Solution Make `PersistentGpuBufferable` a safe trait. Enforce it's correct implementation via assertions. Re-enable `forbid(unsafe_code)` on `bevy_pbr`. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |