Realm

oa::ui::GlyphBuffer

A fixed-capacity GPU-consumable glyph-instance buffer. Records are replaced through GlyphBuffer::upload while GlyphBuffer::mark_consumed pins the exact crate::Event a GPU consumer must complete before the next overwrite. Dropping the buffer never waits; the engine’s retirement service keeps submitted resources alive through completion.

StRust public API

Declaration

pub struct GlyphBuffer { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn upload(&mut self, glyphs: &[GlyphInstance]) -> Result<()>
pub fn mark_consumed(&mut self, completion: &Event) -> Result<()>
pub fn is_ready(&self) -> Result<bool>
pub const fn count(&self) -> u32
pub const fn capacity(&self) -> u32

Associated Functions

pub fn create_host_upload(engine: &Engine, capacity: u32) -> Result<Self>

Public Method Documentation

pub fn upload(&mut self, glyphs: &[GlyphInstance]) -> Result<()>
No public source comment is attached to this declaration.
pub fn mark_consumed(&mut self, completion: &Event) -> Result<()>
No public source comment is attached to this declaration.
pub fn is_ready( &self ) -> Result<bool>
No public source comment is attached to this declaration.
pub const fn count( &self ) -> u32
No public source comment is attached to this declaration.
pub const fn capacity( &self ) -> u32
No public source comment is attached to this declaration.
pub fn create_host_upload( engine: &Engine, capacity: u32 ) -> Result<Self>
No public source comment is attached to this declaration.