pub struct GpuSlugTextPipeline {
pub glyph_cache: AnalyticGlyphCache,
pub buffer: SlugGlyphBuffer,
pub total_glyphs: usize,
pub total_curves: usize,
}Expand description
Slug-tier analytical GPU text compilation pipeline.
Compiles DisplayList text commands (DrawText, DrawTextFragments) into analytical
quadratic Bézier glyph instances and curve contours for hardware shader evaluation.
Fields§
§glyph_cache: AnalyticGlyphCache§buffer: SlugGlyphBuffer§total_glyphs: usize§total_curves: usizeImplementations§
Source§impl GpuSlugTextPipeline
impl GpuSlugTextPipeline
pub fn new() -> Self
pub fn clear(&mut self)
Sourcepub fn sync_barrier(&self) -> u64
pub fn sync_barrier(&self) -> u64
Advances and returns the hardware synchronization fence.
Sourcepub fn is_fence_synchronized(&self, fence: u64) -> bool
pub fn is_fence_synchronized(&self, fence: u64) -> bool
Checks if a hardware synchronization fence has been signaled.
Sourcepub fn compile_display_list(
&mut self,
list: &DisplayList,
viewport_width: f32,
viewport_height: f32,
damage: Option<Rect>,
) -> usize
pub fn compile_display_list( &mut self, list: &DisplayList, viewport_width: f32, viewport_height: f32, damage: Option<Rect>, ) -> usize
Compiles all DrawText commands in a DisplayList into the Slug GPU buffer.
pub fn instance_bytes(&self) -> &[u8] ⓘ
pub fn curve_bytes(&self) -> &[u8] ⓘ
Trait Implementations§
Source§impl Clone for GpuSlugTextPipeline
impl Clone for GpuSlugTextPipeline
Source§impl Debug for GpuSlugTextPipeline
impl Debug for GpuSlugTextPipeline
Auto Trait Implementations§
impl !Freeze for GpuSlugTextPipeline
impl Forget for GpuSlugTextPipeline
impl Move for GpuSlugTextPipeline
impl RefUnwindSafe for GpuSlugTextPipeline
impl Send for GpuSlugTextPipeline
impl Sync for GpuSlugTextPipeline
impl Unpin for GpuSlugTextPipeline
impl UnsafeUnpin for GpuSlugTextPipeline
impl UnwindSafe for GpuSlugTextPipeline
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