pub struct DepthTexture2DArray { /* private fields */ }
Expand description
An array of 2D depth textures that can be rendered into and read from. See also RenderTarget and DepthTarget.
Implementations§
Source§impl DepthTexture2DArray
impl DepthTexture2DArray
Sourcepub fn new<T: DepthTextureDataType>(
context: &Context,
width: u32,
height: u32,
depth: u32,
wrap_s: Wrapping,
wrap_t: Wrapping,
) -> Self
pub fn new<T: DepthTextureDataType>( context: &Context, width: u32, height: u32, depth: u32, wrap_s: Wrapping, wrap_t: Wrapping, ) -> Self
Creates a new array of depth textures.
Sourcepub fn as_depth_target(&mut self, layer: u32) -> DepthTarget<'_>
pub fn as_depth_target(&mut self, layer: u32) -> DepthTarget<'_>
Returns a DepthTarget which can be used to clear, write to and read from the given layer of this texture. Combine this together with a ColorTarget with RenderTarget::new to be able to write to both a depth and color target at the same time.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DepthTexture2DArray
impl RefUnwindSafe for DepthTexture2DArray
impl Send for DepthTexture2DArray
impl Sync for DepthTexture2DArray
impl Unpin for DepthTexture2DArray
impl UnwindSafe for DepthTexture2DArray
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