Trait luminance::backend::depth_slot::DepthSlot [−][src]
pub trait DepthSlot<B: ?Sized, D> where
B: Framebuffer<D>,
D: Dimensionable,
D::Size: Copy, { type DepthTexture; fn depth_format() -> Option<PixelFormat>; fn reify_depth_texture<C>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
sampler: &Sampler,
framebuffer: &mut B::FramebufferRepr
) -> Result<Self::DepthTexture, FramebufferError>
where
C: GraphicsContext<Backend = B>; }
Associated Types
type DepthTexture
type DepthTexture
Texture associated with this color slot.
Required methods
fn depth_format() -> Option<PixelFormat>
fn depth_format() -> Option<PixelFormat>
Turn a depth slot into a pixel format.
fn reify_depth_texture<C>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
sampler: &Sampler,
framebuffer: &mut B::FramebufferRepr
) -> Result<Self::DepthTexture, FramebufferError> where
C: GraphicsContext<Backend = B>,
fn reify_depth_texture<C>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
sampler: &Sampler,
framebuffer: &mut B::FramebufferRepr
) -> Result<Self::DepthTexture, FramebufferError> where
C: GraphicsContext<Backend = B>,
Reify a raw textures into a depth slot.
Implementations on Foreign Types
impl<B: ?Sized, D> DepthSlot<B, D> for () where
B: Framebuffer<D>,
D::Size: Copy,
D: Dimensionable,
impl<B: ?Sized, D> DepthSlot<B, D> for () where
B: Framebuffer<D>,
D::Size: Copy,
D: Dimensionable,
type DepthTexture = ()
fn reify_depth_texture<C>(
_: &mut C,
_: D::Size,
_: usize,
_: &Sampler,
_: &mut B::FramebufferRepr
) -> Result<Self::DepthTexture, FramebufferError> where
C: GraphicsContext<Backend = B>,
Implementors
impl<B: ?Sized, D, P> DepthSlot<B, D> for P where
B: Framebuffer<D> + TextureBackend<D, P>,
D: Dimensionable,
D::Size: Copy,
P: DepthPixel,