From 0025ca0d341c0d2c3fc3b70df6a67c36eaed10ce Mon Sep 17 00:00:00 2001 From: Lachlan Sneff Date: Sun, 12 Apr 2020 10:56:15 -0400 Subject: [PATCH] Fix documentation based on vulkan docs --- src/lib.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9f9944ac71..6578f66a63 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1511,10 +1511,10 @@ impl<'a> RenderPass<'a> { /// ```rust /// #[repr(C)] /// struct DrawIndirect { - /// vertex_count: u32, - /// instance_count: u32, - /// first_vertex: u32, - /// base_instance: u32, + /// vertex_count: u32, // The number of vertices to draw. + /// instance_count: u32, // The number of instances to draw. + /// base_vertex: u32, // The Index of the first vertex to draw. + /// base_instance: u32, // The instance ID of the first instance to draw. /// } /// ``` pub fn draw_indirect(&mut self, indirect_buffer: &'a Buffer, indirect_offset: BufferAddress) { @@ -1538,11 +1538,11 @@ impl<'a> RenderPass<'a> { /// ```rust /// #[repr(C)] /// struct DrawIndexedIndirect { - /// vertex_count: u32, - /// instance_count: u32, - /// first_index: u32, - /// base_vertex: u32, - /// base_instance: u32, + /// vertex_count: u32, // The number of vertices to draw. + /// instance_count: u32, // The number of instances to draw. + /// base_index: u32, // The base index within the index buffer. + /// vertex_offset: i32, // The value added to the vertex index before indexing into the vertex buffer. + /// base_instance: u32, // The instance ID of the first instance to draw. /// } /// ``` pub fn draw_indexed_indirect(