pub struct StencilRenderer { /* private fields */ }Expand description
Maintains the stencil stack used to render nested vector clips.
Implementations§
Source§impl StencilRenderer
impl StencilRenderer
Sourcepub fn new(
device: &Device,
width: u32,
height: u32,
sample_count: u32,
color_format: TextureFormat,
globals: &Buffer,
clip_transforms: &Buffer,
) -> Self
pub fn new( device: &Device, width: u32, height: u32, sample_count: u32, color_format: TextureFormat, globals: &Buffer, clip_transforms: &Buffer, ) -> Self
Create the stencil pipelines and backing texture.
pub fn resize(&mut self, device: &Device, width: u32, height: u32)
pub fn sync_stencil_stack( &mut self, device: &Device, queue: &Queue, depth: u32, clips: &[ClipDraw<'_>], )
pub fn encode_stencil_stack_sync( &mut self, device: &Device, encoder: &mut CommandEncoder, depth: u32, clips: &[ClipDraw<'_>], )
pub fn needs_stack_sync(&self, depth: u32, clips: &[ClipDraw<'_>]) -> bool
pub fn retain_cached_resources( &mut self, active_signatures: &HashSet<u64>, active_clip_ids: &HashSet<u32>, )
pub fn get_stencil(&self) -> (&TextureView, u32)
pub fn clear(&mut self, device: &Device, queue: &Queue)
pub fn encode_clear(&mut self, encoder: &mut CommandEncoder)
Auto Trait Implementations§
impl !RefUnwindSafe for StencilRenderer
impl !Send for StencilRenderer
impl !Sync for StencilRenderer
impl !UnwindSafe for StencilRenderer
impl Freeze for StencilRenderer
impl Unpin for StencilRenderer
impl UnsafeUnpin for StencilRenderer
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
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.