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(