Struct three_d::core::texture::DepthTargetTextureCubeMap [−][src]
pub struct DepthTargetTextureCubeMap { /* fields omitted */ }
Expand description
A depth texture cube map that can be rendered into and read from. See also RenderTargetCubeMap.
Implementations
pub fn new(
context: &Context,
width: u32,
height: u32,
wrap_s: Wrapping,
wrap_t: Wrapping,
wrap_r: Wrapping,
format: DepthFormat
) -> ThreeDResult<Self>
pub fn new(
context: &Context,
width: u32,
height: u32,
wrap_s: Wrapping,
wrap_t: Wrapping,
wrap_r: Wrapping,
format: DepthFormat
) -> ThreeDResult<Self>
Creates a new depth target texture cube map.
pub fn write(
&mut self,
side: CubeMapSide,
clear_state: Option<f32>,
render: impl FnOnce() -> ThreeDResult<()>
) -> ThreeDResult<()>
pub fn write(
&mut self,
side: CubeMapSide,
clear_state: Option<f32>,
render: impl FnOnce() -> ThreeDResult<()>
) -> ThreeDResult<()>
Writes the depth of whatever rendered in the render
closure into the depth texture at the cube map side given by the input parameter side
.
Before writing, the texture side is cleared based on the given clear state.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for DepthTargetTextureCubeMap
impl !Send for DepthTargetTextureCubeMap
impl !Sync for DepthTargetTextureCubeMap
impl Unpin for DepthTargetTextureCubeMap
impl !UnwindSafe for DepthTargetTextureCubeMap
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more