[rs] Fix documentation based on vulkan docs

This commit is contained in:
Lachlan Sneff
2020-04-12 10:56:15 -04:00
parent 5f8ab36938
commit 3d7bc8c528

View File

@@ -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(