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(&mut self, side: CubeMapSide) -> DepthTarget<'_>
pub fn as_depth_target(&mut self, side: CubeMapSide) -> DepthTarget<'_>
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.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for DepthTextureCubeMap
impl !Send for DepthTextureCubeMap
impl !Sync for DepthTextureCubeMap
impl Unpin for DepthTextureCubeMap
impl UnwindSafe for DepthTextureCubeMap
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