gfx-rs/wgpu

[naga] `Arena` could use a `take` method

Open

#6,509 建立於 2024年11月9日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Rust (9,290 star) (703 fork)batch import
good first issuekind: refactornaga

描述

There are a few places in Naga where we actually clone an Arena, in situations where a take would be better. For example, naga::front::wgsl::lower::Lowerer::lower clones the diagnostic filters array.

貢獻者指南

[naga] `Arena` could use a `take` method · gfx-rs/wgpu#6509 | Good First Issue