pub struct ImtRaster { /* private fields */ }
Implementations
sourceimpl ImtRaster
impl ImtRaster
pub fn new_gpu(
device: Arc<Device>,
queue: Arc<Queue>,
opts: ImtRasterOpts
) -> Result<Self, ImtError>
pub fn new_cpu(opts: ImtRasterOpts) -> Result<Self, ImtError>
pub fn sample_count(&self) -> usize
pub fn ray_count(&self) -> usize
pub fn raster_shaped_glyphs(
&self,
parser: &ImtParser,
text_height: f32,
shaped_glyphs: Vec<ImtShapedGlyph>
) -> Result<Vec<ImtRasteredGlyph>, ImtError>
Auto Trait Implementations
impl !RefUnwindSafe for ImtRaster
impl Send for ImtRaster
impl Sync for ImtRaster
impl Unpin for ImtRaster
impl !UnwindSafe for ImtRaster
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