From 46501f296a02846a87010fd6d5123877e76e3c1b Mon Sep 17 00:00:00 2001 From: m4b Date: Sun, 15 Sep 2019 12:30:38 -0700 Subject: [PATCH] print usage required during device usage validation fixes #339 --- wgpu-native/src/device.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-native/src/device.rs b/wgpu-native/src/device.rs index 7dad53fb9..79a2d7271 100644 --- a/wgpu-native/src/device.rs +++ b/wgpu-native/src/device.rs @@ -1215,7 +1215,7 @@ pub fn device_create_bind_group( .buffers .use_extend(&*buffer_guard, bb.buffer, (), usage) .unwrap(); - assert!(buffer.usage.contains(usage)); + assert!(buffer.usage.contains(usage), "Expected buffer usage {:?}", usage); let end = if bb.size == 0 { None