gfx-rs/wgpu

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

Chiusa

#6509 aperta il 9 nov 2024

 (2 commenti) (0 reazioni) (0 assegnatari)Rust (703 fork)batch import
good first issuekind: refactornaga

Metriche repository

Star
 (9290 stelle)
Metriche merge PR
 (Merge medio 12g 4h) (117 PR mergiate in 30 g)

Descrizione

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.

Guida contributor