pub struct DrawIndirectCount {
pub args: BufferHandle,
pub args_offset: u64,
pub count_buffer: BufferHandle,
pub count_offset: u64,
pub max_draw_count: u32,
pub stride: u32,
}Expand description
Arguments for an indirect draw whose count is also read from GPU memory.
GeometryPath::IndirectCount’s
steady-state draw call: a compute pass writes both the arguments and the
count, and the CPU never learns how many draws happen. Requires
Features::DRAW_INDIRECT_COUNT.
Fields§
§args: BufferHandleBuffer holding the argument structures.
args_offset: u64Byte offset of the first argument structure.
count_buffer: BufferHandleBuffer holding a u32 draw count.
count_offset: u64Byte offset of the count.
max_draw_count: u32Upper bound on draws, regardless of what the count buffer says. Bounded
by Limits::max_draw_indirect_count.
stride: u32Bytes between consecutive argument structures.
Trait Implementations§
Source§impl Clone for DrawIndirectCount
impl Clone for DrawIndirectCount
impl Copy for DrawIndirectCount
Source§impl Debug for DrawIndirectCount
impl Debug for DrawIndirectCount
impl Eq for DrawIndirectCount
Source§impl PartialEq for DrawIndirectCount
impl PartialEq for DrawIndirectCount
impl StructuralPartialEq for DrawIndirectCount
Auto Trait Implementations§
impl Freeze for DrawIndirectCount
impl RefUnwindSafe for DrawIndirectCount
impl Send for DrawIndirectCount
impl Sync for DrawIndirectCount
impl Unpin for DrawIndirectCount
impl UnsafeUnpin for DrawIndirectCount
impl UnwindSafe for DrawIndirectCount
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more