Struct glyphon::TextRenderer
source · [−]pub struct TextRenderer { /* private fields */ }
Implementations
sourceimpl TextRenderer
impl TextRenderer
pub fn new(device: &Device, _queue: &Queue, format: TextureFormat) -> Self
pub fn prepare(
&mut self,
device: &Device,
queue: &Queue,
screen_resolution: Resolution,
fonts: &[Font],
layouts: &[Layout<impl HasColor>]
) -> Result<(), PrepareError>
pub fn render<'pass>(
&'pass mut self,
pass: &mut RenderPass<'pass>
) -> Result<(), ()>
Auto Trait Implementations
impl !RefUnwindSafe for TextRenderer
impl Send for TextRenderer
impl Sync for TextRenderer
impl Unpin for TextRenderer
impl !UnwindSafe for TextRenderer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more