pub enum PrimitiveCommand {
    Simple {
        prim_instance_index: PrimitiveInstanceIndex,
    },
    Complex {
        prim_instance_index: PrimitiveInstanceIndex,
        gpu_address: GpuCacheAddress,
    },
    Instance {
        prim_instance_index: PrimitiveInstanceIndex,
        gpu_buffer_address: GpuBufferAddress,
    },
    Quad {
        pattern: PatternKind,
        pattern_input: PatternShaderInput,
        src_color_task_id: RenderTaskId,
        prim_instance_index: PrimitiveInstanceIndex,
        gpu_buffer_address: GpuBufferAddress,
        transform_id: TransformPaletteId,
        quad_flags: QuadFlags,
        edge_flags: EdgeAaSegmentMask,
    },
}Expand description
The unpacked equivalent to a Command.
Variants§
Simple
Fields
§
prim_instance_index: PrimitiveInstanceIndexComplex
Instance
Quad
Fields
§
pattern: PatternKind§
pattern_input: PatternShaderInput§
src_color_task_id: RenderTaskId§
prim_instance_index: PrimitiveInstanceIndex§
gpu_buffer_address: GpuBufferAddress§
transform_id: TransformPaletteId§
edge_flags: EdgeAaSegmentMaskImplementations§
Source§impl PrimitiveCommand
 
impl PrimitiveCommand
pub fn simple(prim_instance_index: PrimitiveInstanceIndex) -> Self
pub fn complex( prim_instance_index: PrimitiveInstanceIndex, gpu_address: GpuCacheAddress, ) -> Self
pub fn quad( pattern: PatternKind, pattern_input: PatternShaderInput, src_color_task_id: RenderTaskId, prim_instance_index: PrimitiveInstanceIndex, gpu_buffer_address: GpuBufferAddress, transform_id: TransformPaletteId, quad_flags: QuadFlags, edge_flags: EdgeAaSegmentMask, ) -> Self
pub fn instance( prim_instance_index: PrimitiveInstanceIndex, gpu_buffer_address: GpuBufferAddress, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrimitiveCommand
impl RefUnwindSafe for PrimitiveCommand
impl Send for PrimitiveCommand
impl Sync for PrimitiveCommand
impl Unpin for PrimitiveCommand
impl UnwindSafe for PrimitiveCommand
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
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more