pub struct DrawIndexedIndirectArgsBuilder<CS: State> { /* private fields */ }Expand description
Builder for wgpu::util::DrawIndexedIndirectArgs
Set all required fields and any optional fields, then call build().
Builder field setters:
- index_count Optional, defaults to
0u32 - instance_count Optional, defaults to
0u32 - first_index Optional, defaults to
0u32 - base_vertex Optional, defaults to
0i32 - first_instance Optional, defaults to
0u32
Implementations§
Source§impl DrawIndexedIndirectArgsBuilder<Empty>
impl DrawIndexedIndirectArgsBuilder<Empty>
pub fn new() -> DrawIndexedIndirectArgsBuilder<Empty>
Source§impl<CS: State> DrawIndexedIndirectArgsBuilder<CS>
impl<CS: State> DrawIndexedIndirectArgsBuilder<CS>
Sourcepub fn index_count(
self,
index_count: u32,
) -> DrawIndexedIndirectArgsBuilder<SetIndexCount<CS>>where
CS::IndexCount: IndexCountIsEmpty,
pub fn index_count(
self,
index_count: u32,
) -> DrawIndexedIndirectArgsBuilder<SetIndexCount<CS>>where
CS::IndexCount: IndexCountIsEmpty,
Setter for wgpu::util::DrawIndexedIndirectArgs::index_count. Optional, defaults to 0u32.
Sourcepub fn instance_count(
self,
instance_count: u32,
) -> DrawIndexedIndirectArgsBuilder<SetInstanceCount<CS>>where
CS::InstanceCount: InstanceCountIsEmpty,
pub fn instance_count(
self,
instance_count: u32,
) -> DrawIndexedIndirectArgsBuilder<SetInstanceCount<CS>>where
CS::InstanceCount: InstanceCountIsEmpty,
Setter for wgpu::util::DrawIndexedIndirectArgs::instance_count. Optional, defaults to 0u32.
Sourcepub fn first_index(
self,
first_index: u32,
) -> DrawIndexedIndirectArgsBuilder<SetFirstIndex<CS>>where
CS::FirstIndex: FirstIndexIsEmpty,
pub fn first_index(
self,
first_index: u32,
) -> DrawIndexedIndirectArgsBuilder<SetFirstIndex<CS>>where
CS::FirstIndex: FirstIndexIsEmpty,
Setter for wgpu::util::DrawIndexedIndirectArgs::first_index. Optional, defaults to 0u32.
Sourcepub fn base_vertex(
self,
base_vertex: i32,
) -> DrawIndexedIndirectArgsBuilder<SetBaseVertex<CS>>where
CS::BaseVertex: BaseVertexIsEmpty,
pub fn base_vertex(
self,
base_vertex: i32,
) -> DrawIndexedIndirectArgsBuilder<SetBaseVertex<CS>>where
CS::BaseVertex: BaseVertexIsEmpty,
Setter for wgpu::util::DrawIndexedIndirectArgs::base_vertex. Optional, defaults to 0i32.
Sourcepub fn first_instance(
self,
first_instance: u32,
) -> DrawIndexedIndirectArgsBuilder<SetFirstInstance<CS>>where
CS::FirstInstance: FirstInstanceIsEmpty,
pub fn first_instance(
self,
first_instance: u32,
) -> DrawIndexedIndirectArgsBuilder<SetFirstInstance<CS>>where
CS::FirstInstance: FirstInstanceIsEmpty,
Setter for wgpu::util::DrawIndexedIndirectArgs::first_instance. Optional, defaults to 0u32.
Source§impl<CS: Complete> DrawIndexedIndirectArgsBuilder<CS>
impl<CS: Complete> DrawIndexedIndirectArgsBuilder<CS>
pub fn build(self) -> DrawIndexedIndirectArgs
Trait Implementations§
Source§impl<CS: Complete> Nested<DrawIndexedIndirectArgs> for DrawIndexedIndirectArgsBuilder<CS>
impl<CS: Complete> Nested<DrawIndexedIndirectArgs> for DrawIndexedIndirectArgsBuilder<CS>
fn unnest(self) -> DrawIndexedIndirectArgs
Auto Trait Implementations§
impl<CS> Freeze for DrawIndexedIndirectArgsBuilder<CS>where
<CS as State>::IndexCount: Freeze,
<CS as State>::InstanceCount: Freeze,
<CS as State>::FirstIndex: Freeze,
<CS as State>::BaseVertex: Freeze,
<CS as State>::FirstInstance: Freeze,
impl<CS> RefUnwindSafe for DrawIndexedIndirectArgsBuilder<CS>where
<CS as State>::IndexCount: RefUnwindSafe,
<CS as State>::InstanceCount: RefUnwindSafe,
<CS as State>::FirstIndex: RefUnwindSafe,
<CS as State>::BaseVertex: RefUnwindSafe,
<CS as State>::FirstInstance: RefUnwindSafe,
impl<CS> Send for DrawIndexedIndirectArgsBuilder<CS>where
<CS as State>::IndexCount: Send,
<CS as State>::InstanceCount: Send,
<CS as State>::FirstIndex: Send,
<CS as State>::BaseVertex: Send,
<CS as State>::FirstInstance: Send,
impl<CS> Sync for DrawIndexedIndirectArgsBuilder<CS>where
<CS as State>::IndexCount: Sync,
<CS as State>::InstanceCount: Sync,
<CS as State>::FirstIndex: Sync,
<CS as State>::BaseVertex: Sync,
<CS as State>::FirstInstance: Sync,
impl<CS> Unpin for DrawIndexedIndirectArgsBuilder<CS>where
<CS as State>::IndexCount: Unpin,
<CS as State>::InstanceCount: Unpin,
<CS as State>::FirstIndex: Unpin,
<CS as State>::BaseVertex: Unpin,
<CS as State>::FirstInstance: Unpin,
impl<CS> UnwindSafe for DrawIndexedIndirectArgsBuilder<CS>where
<CS as State>::IndexCount: UnwindSafe,
<CS as State>::InstanceCount: UnwindSafe,
<CS as State>::FirstIndex: UnwindSafe,
<CS as State>::BaseVertex: UnwindSafe,
<CS as State>::FirstInstance: UnwindSafe,
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