mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
8c3db4bcbb01deb428f001b2fabc676791b53d78
639: Make BindingResource::TextureViewArray more flexible (addresses #588) r=grovesNL a=98devin Fixes #588 Rather than having a field of `&[TextureView]`, which requires either keeping all TextureViews in a vector in the first place or moving them into a temporary vector or array and back, use `&[&TextureView]` instead. Obviates the need for hacky workarounds if you keep your TextureViews in non-contiguous structs, maps, or can't move them, etc. For those using a vector previously, the required transformation is merely `.iter().collect()`. Co-authored-by: Devin Hill <98devin@gmail.com>
Languages
Rust
78.5%
WGSL
13%
GLSL
3.1%
Metal
2.8%
HLSL
2.3%
Other
0.2%