mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Fix documentation based on vulkan docs
This commit is contained in:
18
src/lib.rs
18
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(
|
||||
|
||||
Reference in New Issue
Block a user