Trait luminance::framebuffer::DepthSlot
[−]
[src]
pub trait DepthSlot<C, L, D> where C: HasFramebuffer + HasTexture,
L: Layerable,
D: Dimensionable,
D::Size: Copy { fn depth_format() -> Option<PixelFormat>; fn reify_texture(size: D::Size,
mipmaps: usize,
texture: Option<C::ATexture>)
-> Self; }
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
fn depth_format() -> Option<PixelFormat>
Turn a depth slot into a pixel format.
fn reify_texture(size: D::Size,
mipmaps: usize,
texture: Option<C::ATexture>)
-> Self
mipmaps: usize,
texture: Option<C::ATexture>)
-> Self
Reify a raw textures into a depth slot.
Implementors
impl<C, L, D> DepthSlot<C, L, D> for () where C: HasFramebuffer + HasTexture,
L: Layerable,
D: Dimensionable,
D::Size: Copyimpl<C, L, D, P> DepthSlot<C, L, D> for Texture<C, L, D, P> where C: HasFramebuffer + HasTexture,
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P: DepthPixel