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,
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: PrimitiveInstanceIndex
Complex
Instance
Quad
Fields
§
pattern: PatternKind
§
pattern_input: PatternShaderInput
§
prim_instance_index: PrimitiveInstanceIndex
§
gpu_buffer_address: GpuBufferAddress
§
transform_id: TransformPaletteId
§
edge_flags: EdgeAaSegmentMask
Implementations§
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, 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