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

pub unsafe trait DepthSlot<L, D> where
    L: Layerable,
    D: Dimensionable,
    D::Size: Copy
{ fn depth_format() -> Option<PixelFormat>;
fn reify_texture<C, T>(
        ctx: &mut C,
        size: D::Size,
        mipmaps: usize,
        texture: T
    ) -> Self
    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.

Required Methods

Turn a depth slot into a pixel format.

Reify a raw textures into a depth slot.

Implementations on Foreign Types

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

Implementors