Version bump to 0.5.1 (#427)

This commit is contained in:
Nikita Krupitskas authored and Dzmitry Malyshau committed 2020-07-09 16:48:15 -04:00
1 parent efe44f616c
commit 24405e8f5e
3 files changed
+36 -4

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "wgpu"
version = "0.5.0"
version = "0.5.1"
authors = [
"Dzmitry Malyshau <kvark@mozilla.com>",
"Joshua Groves <josh@joshgroves.com>",
@@ -30,7 +30,7 @@ version = "0.5"
[dependencies.wgc]
package = "wgpu-core"
version = "0.5"
version = "0.5.6"
#git = "https://github.com/gfx-rs/wgpu"
[dependencies.wgt]
+5 -2
View File
@@ -351,11 +351,14 @@ impl framework::Example for Example {
}],
depth_stencil_attachment: None,
});
rpass.push_debug_group("Prepare data for draw.");
rpass.set_pipeline(&self.pipeline);
rpass.set_bind_group(0, &self.bind_group, &[]);
rpass.set_index_buffer(&self.index_buf, 0,0 );
rpass.set_index_buffer(&self.index_buf, 0, 0);
rpass.set_vertex_buffer(0, &self.vertex_buf, 0, 0);
rpass.draw_indexed(0 .. self.index_count as u32, 0, 0 .. 1);
rpass.pop_debug_group();
rpass.insert_debug_marker("Draw!");
rpass.draw_indexed(0..self.index_count as u32, 0, 0..1);
}
encoder.finish()
+29
View File
@@ -1485,6 +1485,35 @@ impl<'a> RenderPass<'a> {
}
}
/// Inserts debug marker.
pub fn insert_debug_marker(&mut self, label: &str) {
unsafe {
wgn::wgpu_render_pass_insert_debug_marker(
self.id.as_mut().unwrap(),
label.as_ptr() as *const i8,
0,
);
}
}
/// Start record commands and group it into debug marker group.
pub fn push_debug_group(&mut self, label: &str) {
unsafe {
wgn::wgpu_render_pass_push_debug_group(
self.id.as_mut().unwrap(),
label.as_ptr() as *const i8,
0,
);
}
}
/// Stops command recording and creates debug group.
pub fn pop_debug_group(&mut self) {
unsafe {
wgn::wgpu_render_pass_pop_debug_group(self.id.as_mut().unwrap());
}
}
/// Draws indexed primitives using the active index buffer and the active vertex buffers.
///
/// The active index buffer can be set with [`RenderPass::set_index_buffer`], while the active