mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-23 07:14:01 +00:00
Merge #340
340: print usage required during usage validation r=kvark a=m4b fixes #339 Co-authored-by: m4b <m4b.github.io@gmail.com>
This commit is contained in:
commit
ac16063c60
@ -1215,7 +1215,7 @@ pub fn device_create_bind_group<B: GfxBackend>(
|
|||||||
.buffers
|
.buffers
|
||||||
.use_extend(&*buffer_guard, bb.buffer, (), usage)
|
.use_extend(&*buffer_guard, bb.buffer, (), usage)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
assert!(buffer.usage.contains(usage));
|
assert!(buffer.usage.contains(usage), "Expected buffer usage {:?}", usage);
|
||||||
|
|
||||||
let end = if bb.size == 0 {
|
let end = if bb.size == 0 {
|
||||||
None
|
None
|
||||||
|
Loading…
Reference in New Issue
Block a user