mirror of
https://github.com/bevyengine/bevy
synced 2024-11-23 05:03:47 +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`. |
||
---|---|---|
.. | ||
macros | ||
src | ||
Cargo.toml |