Struct three_d::DepthTargetTexture2DArray [−][src]
pub struct DepthTargetTexture2DArray { /* fields omitted */ }
Expand description
An array of 2D depth textures that can be rendered into and read from. See also RenderTargetArray.
Implementations
impl DepthTargetTexture2DArray
[src]
impl DepthTargetTexture2DArray
[src]pub fn new(
context: &Context,
width: usize,
height: usize,
depth: usize,
wrap_s: Wrapping,
wrap_t: Wrapping,
format: DepthFormat
) -> Result<Self, Error>
[src]
context: &Context,
width: usize,
height: usize,
depth: usize,
wrap_s: Wrapping,
wrap_t: Wrapping,
format: DepthFormat
) -> Result<Self, Error>
pub fn write<F: FnOnce() -> Result<(), Error>>(
&self,
depth_layer: usize,
clear_state: Option<f32>,
render: F
) -> Result<(), Error>
[src]
pub fn write<F: FnOnce() -> Result<(), Error>>(
&self,
depth_layer: usize,
clear_state: Option<f32>,
render: F
) -> Result<(), Error>
[src]Writes the depth of whatever rendered in the render
closure into the depth texture defined by the input parameter depth_layer
.
Before writing, the texture is cleared based on the given clear state.
pub fn copy_to<T: TextureValueType>(
&self,
depth_layer: usize,
destination: CopyDestination<'_, '_, '_, '_, T>,
viewport: Viewport
) -> Result<(), Error>
[src]
pub fn copy_to<T: TextureValueType>(
&self,
depth_layer: usize,
destination: CopyDestination<'_, '_, '_, '_, T>,
viewport: Viewport
) -> Result<(), Error>
[src]Copies the content of the depth texture at the given layer to the specified destination at the given viewport.
Errors
Will return an error if the destination is a color texture.
Trait Implementations
impl Drop for DepthTargetTexture2DArray
[src]
impl Drop for DepthTargetTexture2DArray
[src]