pub struct PrimTemplateCommonData {
pub flags: PrimitiveFlags,
pub opacity: PrimitiveOpacity,
pub gpu_buffer_address: GpuBufferAddress,
pub aligned_aa_edges: EdgeMask,
pub transformed_aa_edges: EdgeMask,
}Fields§
§flags: PrimitiveFlags§opacity: PrimitiveOpacity§gpu_buffer_address: GpuBufferAddressAddress of the per-primitive data in the GPU cache.
TODO: This is only valid during the current frame and must be overwritten each frame. We should move this out of the common data to avoid accidental reuse.
aligned_aa_edges: EdgeMask§transformed_aa_edges: EdgeMaskImplementations§
Source§impl PrimTemplateCommonData
impl PrimTemplateCommonData
pub fn with_key_common(common: PrimKeyCommonData) -> Self
Trait Implementations§
Source§impl Debug for PrimTemplateCommonData
impl Debug for PrimTemplateCommonData
Source§impl MallocSizeOf for PrimTemplateCommonData
impl MallocSizeOf for PrimTemplateCommonData
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Auto Trait Implementations§
impl Freeze for PrimTemplateCommonData
impl RefUnwindSafe for PrimTemplateCommonData
impl Send for PrimTemplateCommonData
impl Sync for PrimTemplateCommonData
impl Unpin for PrimTemplateCommonData
impl UnsafeUnpin for PrimTemplateCommonData
impl UnwindSafe for PrimTemplateCommonData
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