pub struct GdrArgs {
pub index_count: u32,
pub instance_count: u32,
pub first_index: u32,
pub base_vertex: i32,
pub first_instance: u32,
}Expand description
Indirect-Draw-Argument eines Meshes — WGSL-Seite GdrArgs und
Feld-fuer-Feld wgpu::util::DrawIndexedIndirectArgs (20 Byte, u32
ausser base_vertex). Die GPU schreibt nur instance_count (per
atomicAdd); den Rest liefert der Aufruhr als Frame-Initial.
Fields§
§index_count: u32§instance_count: u32§first_index: u32§base_vertex: i32§first_instance: u32Trait Implementations§
impl Copy for GdrArgs
impl Eq for GdrArgs
impl StructuralPartialEq for GdrArgs
Auto Trait Implementations§
impl Freeze for GdrArgs
impl RefUnwindSafe for GdrArgs
impl Send for GdrArgs
impl Sync for GdrArgs
impl Unpin for GdrArgs
impl UnsafeUnpin for GdrArgs
impl UnwindSafe for GdrArgs
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