Struct three_d::core::texture::DepthTextureCubeMap
source · pub struct DepthTextureCubeMap { /* private fields */ }Expand description
A depth texture cube map that can be rendered into and read from. See also RenderTarget and DepthTarget.
Implementations§
source§impl DepthTextureCubeMap
impl DepthTextureCubeMap
sourcepub fn new<T: DepthTextureDataType>(
context: &Context,
width: u32,
height: u32,
wrap_s: Wrapping,
wrap_t: Wrapping,
wrap_r: Wrapping
) -> Self
pub fn new<T: DepthTextureDataType>( context: &Context, width: u32, height: u32, wrap_s: Wrapping, wrap_t: Wrapping, wrap_r: Wrapping ) -> Self
Creates a new depth texture cube map.
sourcepub fn as_depth_target<'a>(&'a mut self, side: CubeMapSide) -> DepthTarget<'a>
pub fn as_depth_target<'a>(&'a mut self, side: CubeMapSide) -> DepthTarget<'a>
Returns a DepthTarget which can be used to clear, write to and read from the given side 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.