pub struct ExtendedInstanceRecord {
pub base: InstanceRecord,
pub extra: [f32; 4],
}Expand description
Versioned sixteen-word primitive, leaving the original record layout intact. SpriteSheet uses UV bounds; tapered segments use the other endpoint color; analytic shapes use kind-specific finite parameters.
Fields§
§base: InstanceRecordCommon twelve-word geometry. Tapered width is the start diameter and radius is the endpoint radius.
extra: [f32; 4]UV bounds, endpoint RGBA, or analytic shape parameters.
Implementations§
Source§impl ExtendedInstanceRecord
impl ExtendedInstanceRecord
Sourcepub fn validate(self) -> Result<(), ValidationError>
pub fn validate(self) -> Result<(), ValidationError>
Validates extended geometry without allocating or encoding a batch.
Trait Implementations§
Source§impl Clone for ExtendedInstanceRecord
impl Clone for ExtendedInstanceRecord
impl Copy for ExtendedInstanceRecord
Source§impl Debug for ExtendedInstanceRecord
impl Debug for ExtendedInstanceRecord
Source§impl PartialEq for ExtendedInstanceRecord
impl PartialEq for ExtendedInstanceRecord
impl StructuralPartialEq for ExtendedInstanceRecord
Auto Trait Implementations§
impl Forget for ExtendedInstanceRecord
impl Freeze for ExtendedInstanceRecord
impl RefUnwindSafe for ExtendedInstanceRecord
impl Send for ExtendedInstanceRecord
impl Sync for ExtendedInstanceRecord
impl Unpin for ExtendedInstanceRecord
impl UnsafeUnpin for ExtendedInstanceRecord
impl UnwindSafe for ExtendedInstanceRecord
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