pub struct StencilTarget {
pub texture: Texture,
pub view: TextureView,
pub width: u32,
pub height: u32,
pub sample_count: u32,
}Expand description
Owns the depth+stencil texture and view for one render target.
Create one StencilTarget per GpuContext / RenderTarget; it must
have the same width, height, and sample_count.
Fields§
§texture: TextureThe depth+stencil texture.
view: TextureViewView over the depth+stencil texture.
width: u32Target width (must match the colour texture).
height: u32Target height (must match the colour texture).
sample_count: u32MSAA sample count (must match the colour pipeline).
Implementations§
Source§impl StencilTarget
impl StencilTarget
Auto Trait Implementations§
impl !RefUnwindSafe for StencilTarget
impl !UnwindSafe for StencilTarget
impl Freeze for StencilTarget
impl Send for StencilTarget
impl Sync for StencilTarget
impl Unpin for StencilTarget
impl UnsafeUnpin for StencilTarget
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