pub struct CubeDepthTexture(/* private fields */);Expand description
three.js’ CubeDepthTexture — the six-face depth texture a point light’s
shadow renders into.
Implementations§
Source§impl CubeDepthTexture
impl CubeDepthTexture
Sourcepub fn dispose(self)
pub fn dispose(self)
cubeDepthTexture.dispose() — drops this handle, and nothing more: a texture
handle is an Rc, so the renderer frees the GPU side once every handle
is gone, at the top of the next render (docs/scene-graph.md,
“Identity and eviction”). Dropping the handle does the same; this
exists so three.js code ports line for line.
Sourcepub fn set_filters(&self, min_filter: TextureFilter, mag_filter: TextureFilter)
pub fn set_filters(&self, min_filter: TextureFilter, mag_filter: TextureFilter)
depthTexture.minFilter / .magFilter — ShadowNode.setupShadow()
picks LinearFilter for PCFShadowMap and NearestFilter for every
other type.
Trait Implementations§
Source§impl Clone for CubeDepthTexture
impl Clone for CubeDepthTexture
Source§impl Debug for CubeDepthTexture
The id is identity, not content: leaving it out keeps the Debug of a
binding description — what examples/dump_wgsl.rs prints beside the WGSL —
a function of the texture itself.
impl Debug for CubeDepthTexture
The id is identity, not content: leaving it out keeps the Debug of a
binding description — what examples/dump_wgsl.rs prints beside the WGSL —
a function of the texture itself.
Auto Trait Implementations§
impl !RefUnwindSafe for CubeDepthTexture
impl !Send for CubeDepthTexture
impl !Sync for CubeDepthTexture
impl !UnwindSafe for CubeDepthTexture
impl Freeze for CubeDepthTexture
impl Unpin for CubeDepthTexture
impl UnsafeUnpin for CubeDepthTexture
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