pub struct DepthTarget<'a, F: FrameOperations + ?Sized> {
pub attachment: &'a F::DepthAttachment,
pub clear: Option<f32>,
}Expand description
Specifies the depth attachment for a render pass.
Fields§
§attachment: &'a F::DepthAttachment§clear: Option<f32>Some(depth) to clear to that value, None to load existing contents.
Implementations§
Source§impl<'a, F: FrameOperations> DepthTarget<'a, F>
impl<'a, F: FrameOperations> DepthTarget<'a, F>
Sourcepub fn new(attachment: &'a F::DepthAttachment, clear: f32) -> Self
pub fn new(attachment: &'a F::DepthAttachment, clear: f32) -> Self
Depth attachment cleared to clear.
Sourcepub fn load(attachment: &'a F::DepthAttachment) -> Self
pub fn load(attachment: &'a F::DepthAttachment) -> Self
Depth attachment, loading existing contents (no clear).
Auto Trait Implementations§
impl<'a, F> Freeze for DepthTarget<'a, F>where
F: ?Sized,
impl<'a, F> RefUnwindSafe for DepthTarget<'a, F>
impl<'a, F> Send for DepthTarget<'a, F>
impl<'a, F> Sync for DepthTarget<'a, F>
impl<'a, F> Unpin for DepthTarget<'a, F>where
F: ?Sized,
impl<'a, F> UnsafeUnpin for DepthTarget<'a, F>where
F: ?Sized,
impl<'a, F> UnwindSafe for DepthTarget<'a, F>
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