bevy/crates/bevy_pbr
James Liu e62a01f403
Make PersistentGpuBufferable a safe trait (#12744)
# 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`.
2024-03-29 13:14:34 +00:00
..
src Make PersistentGpuBufferable a safe trait (#12744) 2024-03-29 13:14:34 +00:00
Cargo.toml Meshlet rendering (initial feature) (#10164) 2024-03-25 19:08:27 +00:00