bors[bot]andOptimisticPeach 45df7b03ca [rs] Merge #482
482: Add label parameter to `create_buffer_with_data` r=kvark a=OptimisticPeach

Improves QOL by allowing you to attach a label to a buffer when created with predetermined data:
```
let uniform_buf = device.create_buffer_with_data(
    bytemuck::cast_slice(my_data),
    wgpu::BufferUsage::UNIFORM,
    Some(Cow::Borrowed("My Uniforms")),
);
```

Co-authored-by: OptimisticPeach <patrikbuhring@yahoo.com>
2020-07-30 02:08:24 +00:00
2020-04-26 18:59:48 -02:30
S
Description
A cross-platform, safe, pure-Rust graphics API.
92 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 78.5%
WGSL 13%
GLSL 3.1%
Metal 2.8%
HLSL 2.3%
Other 0.2%