pub struct RecordSegment {
pub lane: RecordLane,
pub start: u32,
pub count: u32,
pub blend: BlendMode,
pub gradient: bool,
pub brushes: u8,
pub kinds: u8,
pub band_class: u8,
}Expand description
A run of consecutive entries of one lane that a single draw can take: shapes sharing a blend mode and a brush class, or a run of other primitives.
Fields§
§lane: RecordLane§start: u32§count: u32§blend: BlendMode§gradient: bool§brushes: u8One bit per BRUSH_KIND_* present in the segment; bit 0 stands for
the records drawn without a brush.
kinds: u8One bit per FRAGMENT_KIND_* present in the segment.
band_class: u8The band class every record of the segment is drawn at: the index
into ARC_BUCKET_SEGMENTS of the strip each record is instanced
over, so one draw covers the segment in record order.
Implementations§
Source§impl RecordSegment
impl RecordSegment
pub fn range(&self) -> Range<usize> ⓘ
Sourcepub fn uniform_kind(&self) -> Option<u32>
pub fn uniform_kind(&self) -> Option<u32>
The one kind every record of the segment has, if they agree.
Sourcepub fn uniform_brush(&self) -> Option<u32>
pub fn uniform_brush(&self) -> Option<u32>
The one brush kind every record of the segment paints with, if they agree; zero when none of them has a brush.
Trait Implementations§
Source§impl Clone for RecordSegment
impl Clone for RecordSegment
Source§fn clone(&self) -> RecordSegment
fn clone(&self) -> RecordSegment
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 moreimpl Copy for RecordSegment
Source§impl Debug for RecordSegment
impl Debug for RecordSegment
impl Eq for RecordSegment
Source§impl Hash for RecordSegment
impl Hash for RecordSegment
Source§impl PartialEq for RecordSegment
impl PartialEq for RecordSegment
impl StructuralPartialEq for RecordSegment
Auto Trait Implementations§
impl Freeze for RecordSegment
impl RefUnwindSafe for RecordSegment
impl Send for RecordSegment
impl Sync for RecordSegment
impl Unpin for RecordSegment
impl UnsafeUnpin for RecordSegment
impl UnwindSafe for RecordSegment
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