Struct luminance::framebuffer::Slot
[−]
[src]
pub struct Slot<C, L, D, P> where C: HasTexture, L: Layerable, D: Dimensionable, P: Pixel { pub texture: Texture<C, L, D, P>, }
Slot type; used to create color and depth slots for framebuffers.
Fields
texture: Texture<C, L, D, P>
Trait Implementations
impl<C, L, D, P> ColorSlot<C, L, D> for Slot<C, L, D, P> where C: HasFramebuffer + HasTexture, L: Layerable, D: Dimensionable, D::Size: Copy, P: ColorPixel + RenderablePixel
[src]
fn color_formats() -> Vec<PixelFormat>
Turn a color slot into a list of pixel formats.
fn reify_textures(size: D::Size, mipmaps: usize, textures: &mut Vec<C::ATexture>) -> Self
Reify a list of raw textures into a color slot.
impl<C, L, D, P> DepthSlot<C, L, D> for Slot<C, L, D, P> where C: HasFramebuffer + HasTexture, L: Layerable, D: Dimensionable, D::Size: Copy, P: DepthPixel
[src]
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
Reify a raw textures into a depth slot.