pub struct ShapeRecords { /* private fields */ }Expand description
Recorded shapes stored in parallel columns, ready for GPU upload.
Angle changes leave the body column intact. Original arc arguments remain on the CPU so materialisation preserves exactly what the caller supplied.
Implementations§
Source§impl ShapeRecords
impl ShapeRecords
Sourcepub fn bodies(&self) -> &[ShapeRecordBody]
pub fn bodies(&self) -> &[ShapeRecordBody]
The angle-independent column, directly usable as GPU instance data.
Sourcepub fn curves(&self) -> &[ShapeRecordCurve]
pub fn curves(&self) -> &[ShapeRecordCurve]
The radius and angle column, directly usable as GPU instance data.
Sourcepub fn get(&self, index: usize) -> Option<ShapeRecord>
pub fn get(&self, index: usize) -> Option<ShapeRecord>
Reconstructs one complete record, including the original arc arguments.
Sourcepub fn iter(
&self,
) -> impl ExactSizeIterator<Item = ShapeRecord> + DoubleEndedIterator + '_
pub fn iter( &self, ) -> impl ExactSizeIterator<Item = ShapeRecord> + DoubleEndedIterator + '_
Iterates over complete records in draw order without allocating.
Trait Implementations§
Source§impl Clone for ShapeRecords
impl Clone for ShapeRecords
Source§fn clone(&self) -> ShapeRecords
fn clone(&self) -> ShapeRecords
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShapeRecords
impl Debug for ShapeRecords
Source§impl Default for ShapeRecords
impl Default for ShapeRecords
Source§fn default() -> ShapeRecords
fn default() -> ShapeRecords
Returns the “default value” for a type. Read more
Source§impl PartialEq for ShapeRecords
impl PartialEq for ShapeRecords
impl StructuralPartialEq for ShapeRecords
Auto Trait Implementations§
impl Freeze for ShapeRecords
impl RefUnwindSafe for ShapeRecords
impl Send for ShapeRecords
impl Sync for ShapeRecords
impl Unpin for ShapeRecords
impl UnsafeUnpin for ShapeRecords
impl UnwindSafe for ShapeRecords
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