[][src]Trait luminance::framebuffer::DepthSlot

pub unsafe trait DepthSlot<L, D> where
    L: Layerable,
    D: Dimensionable,
    D::Size: Copy
{ type DepthTexture; fn depth_format() -> Option<PixelFormat>;
fn reify_texture<C, T>(
        ctx: &mut C,
        size: D::Size,
        mipmaps: usize,
        texture: T
    ) -> Self::DepthTexture
    where
        C: GraphicsContext,
        T: Into<Option<GLuint>>
; }

A framebuffer has a depth slot. A depth slot can either be empty (the unit type is used, ()) or a single depth format.

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_texture<C, T>(
    ctx: &mut C,
    size: D::Size,
    mipmaps: usize,
    texture: T
) -> Self::DepthTexture where
    C: GraphicsContext,
    T: Into<Option<GLuint>>, 

Reify a raw textures into a depth slot.

Loading content...

Implementations on Foreign Types

impl<L, D> DepthSlot<L, D> for () where
    L: Layerable,
    D: Dimensionable,
    D::Size: Copy
[src]

type DepthTexture = ()

Loading content...

Implementors

impl<L, D, P> DepthSlot<L, D> for P where
    L: Layerable,
    D: Dimensionable,
    D::Size: Copy,
    P: DepthPixel
[src]

type DepthTexture = Texture<L, D, P>

Loading content...