[][src]Trait luminance::backend::depth_slot::DepthSlot

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

Texture associated with this color slot.

Loading content...

Required methods

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>, 

Reify a raw textures into a depth slot.

Loading content...

Implementations on Foreign Types

impl<B: ?Sized, D> DepthSlot<B, D> for () where
    B: Framebuffer<D>,
    D::Size: Copy,
    D: Dimensionable
[src]

type DepthTexture = ()

Loading content...

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
[src]

type DepthTexture = Texture<B, D, P>

Loading content...