pub struct TextPipeline {
pub pipeline: RenderPipeline,
pub layout: PipelineLayout,
pub bind_group_layout: BindGroupLayout,
pub uniform: Buffer,
pub sampler: Sampler,
pub bind_group: BindGroup,
/* private fields */
}Fields§
§pipeline: RenderPipeline§layout: PipelineLayout§bind_group_layout: BindGroupLayout§uniform: Buffer§sampler: Sampler§bind_group: BindGroupImplementations§
Source§impl TextPipeline
impl TextPipeline
pub fn new( device: &Device, queue: &Queue, format: TextureFormat, ) -> Result<Self>
Sourcepub fn sync_atlas(&mut self, device: &Device, queue: &Queue, set: &AtlasSet)
pub fn sync_atlas(&mut self, device: &Device, queue: &Queue, set: &AtlasSet)
Brings the glyph atlas in line with the shaped layers, rebuilding the array only when the layer count changed.
pub fn set_viewport(&self, queue: &Queue, width: f32, height: f32)
Auto Trait Implementations§
impl !Freeze for TextPipeline
impl !RefUnwindSafe for TextPipeline
impl !UnwindSafe for TextPipeline
impl Send for TextPipeline
impl Sync for TextPipeline
impl Unpin for TextPipeline
impl UnsafeUnpin for TextPipeline
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