pub struct DepthTexture { /* private fields */ }Expand description
A depth texture the engine allocated and keeps across frames.
Implementations§
Source§impl DepthTexture
impl DepthTexture
Sourcepub fn new(device: &Device, width: u32, height: u32) -> Self
pub fn new(device: &Device, width: u32, height: u32) -> Self
Allocates a depth attachment covering a width x height target.
Sourcepub fn view(&self) -> &TextureView
pub fn view(&self) -> &TextureView
The full-extent view a render pass attaches to.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DepthTexture
impl !UnwindSafe for DepthTexture
impl Freeze for DepthTexture
impl Send for DepthTexture
impl Sync for DepthTexture
impl Unpin for DepthTexture
impl UnsafeUnpin for DepthTexture
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