gfx-rs / wgpu-rs

Rust bindings to wgpu native library
https://wgpu.rs
Mozilla Public License 2.0
1.69k stars 186 forks source link

Add uniform and storage buffer arrays #850

Closed csnewman closed 3 years ago

csnewman commented 3 years ago

Connections https://github.com/gfx-rs/wgpu/pull/1315

Description Adds uniform and storage buffer arrays

Usage:

wgpu::BindGroupEntry {
    binding: 0,
    resource: BindingResource::BufferArray(&[
        buffer1.as_entire_buffer_binding(),
        buffer2.as_entire_buffer_binding(),
    ]),
}
kvark commented 3 years ago

bors r+

bors[bot] commented 3 years ago

Build succeeded: