pub struct GpuPathBatch {
pub segments: Vec<GpuPathSegment>,
}Expand description
Batch collection of GPU instanced path segments ready for upload to storage/vertex buffers.
Fields§
§segments: Vec<GpuPathSegment>Implementations§
Source§impl GpuPathBatch
impl GpuPathBatch
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn push(&mut self, segment: GpuPathSegment)
pub fn clear(&mut self)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn as_bytes(&self) -> &[u8] ⓘ
Sourcepub fn from_display_list(
list: &DisplayList,
viewport_width: f32,
viewport_height: f32,
) -> Self
pub fn from_display_list( list: &DisplayList, viewport_width: f32, viewport_height: f32, ) -> Self
Compiles vector paths from a DisplayList into GPU path segments.
Sourcepub fn from_display_list_damaged(
list: &DisplayList,
damage: Option<Rect>,
viewport_width: f32,
viewport_height: f32,
) -> Self
pub fn from_display_list_damaged( list: &DisplayList, damage: Option<Rect>, viewport_width: f32, viewport_height: f32, ) -> Self
Compiles vector paths from a DisplayList into GPU path segments with optional damage scissoring.
Trait Implementations§
Source§impl Clone for GpuPathBatch
impl Clone for GpuPathBatch
Source§impl Debug for GpuPathBatch
impl Debug for GpuPathBatch
Source§impl Default for GpuPathBatch
impl Default for GpuPathBatch
Source§impl PartialEq for GpuPathBatch
impl PartialEq for GpuPathBatch
impl StructuralPartialEq for GpuPathBatch
Auto Trait Implementations§
impl Forget for GpuPathBatch
impl Freeze for GpuPathBatch
impl Move for GpuPathBatch
impl RefUnwindSafe for GpuPathBatch
impl Send for GpuPathBatch
impl Sync for GpuPathBatch
impl Unpin for GpuPathBatch
impl UnsafeUnpin for GpuPathBatch
impl UnwindSafe for GpuPathBatch
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