pub struct CellBackgroundRenderer { /* private fields */ }Implementations§
Source§impl CellBackgroundRenderer
impl CellBackgroundRenderer
pub fn new(device: &Device, format: TextureFormat) -> Self
Sourcepub fn prepare(
&mut self,
device: &Device,
queue: &Queue,
frame: &PresentationFrame<'_>,
) -> Result<(), BackgroundPrepareError>
pub fn prepare( &mut self, device: &Device, queue: &Queue, frame: &PresentationFrame<'_>, ) -> Result<(), BackgroundPrepareError>
Prepares opaque runs that differ from the frame’s default background.
Sourcepub fn draw(&self, pass: &mut RenderPass<'_>)
pub fn draw(&self, pass: &mut RenderPass<'_>)
Draws cell backgrounds between the BehindBackground and BehindText image layers.
Auto Trait Implementations§
impl !RefUnwindSafe for CellBackgroundRenderer
impl !UnwindSafe for CellBackgroundRenderer
impl Forget for CellBackgroundRenderer
impl Freeze for CellBackgroundRendererwhere
*const ArcInner<CoreRenderPipeline> is !null: Freeze,
PhantomData<ArcInner<CoreRenderPipeline>>: Freeze,
*const ArcInner<CoreBuffer> is !null: Freeze,
PhantomData<ArcInner<CoreBuffer>>: Freeze,
*const ArcInner<Mutex<MapContext>> is !null: Freeze,
PhantomData<ArcInner<Mutex<MapContext>>>: Freeze,
InternalBitFlags: Freeze,
*const u8 is !null: Freeze,
PhantomData<[f32; 8]>: Freeze,
NonZero<u32>: Freeze,
PhantomData<RowRevision>: Freeze,
impl Move for CellBackgroundRenderer
impl Send for CellBackgroundRenderer
impl Sync for CellBackgroundRenderer
impl Unpin for CellBackgroundRenderer
impl UnsafeUnpin for CellBackgroundRendererwhere
*const ArcInner<CoreRenderPipeline> is !null: UnsafeUnpin,
PhantomData<ArcInner<CoreRenderPipeline>>: UnsafeUnpin,
*const ArcInner<CoreBuffer> is !null: UnsafeUnpin,
PhantomData<ArcInner<CoreBuffer>>: UnsafeUnpin,
*const ArcInner<Mutex<MapContext>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<MapContext>>>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<[f32; 8]>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
PhantomData<RowRevision>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.