Closed xiaopengli89 closed 3 days ago
Nice catch!
Most of the code in life.rs is quite tricky to understand and will hopefully go away in a not-so-distant future. I think that this fix would be easier to understand (and less likely to get accidentally removed along with the resource triaging code) if done just before inserting a view in
Texture::views
inGlobal::texture_create_view
.And while you are at it, could you also clean up
Texture::bind_groups
andBuffer::bind_groups
the same way inGlobal::create_bind_group
?
Done.
Thanks!
Connections Close #5707
Description
Checklist
cargo fmt
.cargo clippy
. If applicable, add:--target wasm32-unknown-unknown
--target wasm32-unknown-emscripten
cargo xtask test
to run tests.CHANGELOG.md
. See simple instructions inside file.