pub struct StencilTarget {
pub texture: Texture,
pub view: TextureView,
pub size: PhysicalExtent,
pub format: TextureFormat,
}Expand description
GPU depth/stencil attachment sized to the window.
§Examples
use ailloli_ui_render_wgpu::stencil::StencilTarget;
assert_eq!(StencilTarget::FORMAT, wgpu::TextureFormat::Depth24PlusStencil8);Fields§
§texture: TextureOwned attachment texture.
view: TextureViewFull view used by render passes.
size: PhysicalExtentActual allocation extent in physical pixels, with each axis at least one.
format: TextureFormatAttachment format, always Self::FORMAT.
Implementations§
Source§impl StencilTarget
impl StencilTarget
Sourcepub const FORMAT: TextureFormat = wgpu::TextureFormat::Depth24PlusStencil8
pub const FORMAT: TextureFormat = wgpu::TextureFormat::Depth24PlusStencil8
Depth/stencil format expected by stencil-enabled pipelines.
§Examples
use ailloli_ui_render_wgpu::stencil::StencilTarget;
assert_eq!(StencilTarget::FORMAT, wgpu::TextureFormat::Depth24PlusStencil8);Auto Trait Implementations§
impl Freeze for StencilTarget
impl !RefUnwindSafe for StencilTarget
impl Send for StencilTarget
impl Sync for StencilTarget
impl Unpin for StencilTarget
impl !UnwindSafe 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
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