pub struct StencilWritePipeline {
pub write: RenderPipeline,
pub clear: RenderPipeline,
pub globals_layout: BindGroupLayout,
}Expand description
A render pipeline variant that writes to the stencil buffer.
The pipeline outputs no colour (colour write mask = NONE) and uses
StencilOperation::Replace to write the reference value on every fragment
that passes the stencil test.
Two variants are available:
write— writes reference value on stencil pass (populates clip mask).clear— writes 0 on every fragment (clears clip mask).
Fields§
§write: RenderPipelinePipeline that writes the reference value into the stencil buffer.
clear: RenderPipelinePipeline that clears (zeroes) the stencil buffer by rendering a fullscreen quad.
globals_layout: BindGroupLayoutGlobals bind group layout (viewport uniform).
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StencilWritePipeline
impl !UnwindSafe for StencilWritePipeline
impl Freeze for StencilWritePipeline
impl Send for StencilWritePipeline
impl Sync for StencilWritePipeline
impl Unpin for StencilWritePipeline
impl UnsafeUnpin for StencilWritePipeline
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more