Trait luminance::framebuffer::ColorSlot [] [src]

pub trait ColorSlot<L, D> where
    L: Layerable,
    D: Dimensionable,
    D::Size: Copy
{ fn color_formats() -> Vec<PixelFormat>;
fn reify_textures<I>(
        size: D::Size,
        mipmaps: usize,
        textures: &mut I
    ) -> Self
    where
        I: Iterator<Item = GLuint>
; }

A framebuffer has a color slot. A color slot can either be empty (the unit type is used,()) or several color formats.

Required Methods

Turn a color slot into a list of pixel formats.

Reify a list of raw textures into a color slot.

Implementations on Foreign Types

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

[src]

[src]

impl<L, D, P0, P1> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>) where
    L: Layerable,
    D: Dimensionable,
    D::Size: Copy,
    P0: ColorPixel + RenderablePixel,
    P1: ColorPixel + RenderablePixel
[src]

[src]

[src]

impl<L, D, P0, P1, P2> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>, Texture<L, D, P2>) where
    L: Layerable,
    D: Dimensionable,
    D::Size: Copy,
    P0: ColorPixel + RenderablePixel,
    P1: ColorPixel + RenderablePixel,
    P2: ColorPixel + RenderablePixel
[src]

[src]

[src]

impl<L, D, P0, P1, P2, P3> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>, Texture<L, D, P2>, Texture<L, D, P3>) where
    L: Layerable,
    D: Dimensionable,
    D::Size: Copy,
    P0: ColorPixel + RenderablePixel,
    P1: ColorPixel + RenderablePixel,
    P2: ColorPixel + RenderablePixel,
    P3: ColorPixel + RenderablePixel
[src]

[src]

[src]

impl<L, D, P0, P1, P2, P3, P4> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>, Texture<L, D, P2>, Texture<L, D, P3>, Texture<L, D, P4>) where
    L: Layerable,
    D: Dimensionable,
    D::Size: Copy,
    P0: ColorPixel + RenderablePixel,
    P1: ColorPixel + RenderablePixel,
    P2: ColorPixel + RenderablePixel,
    P3: ColorPixel + RenderablePixel,
    P4: ColorPixel + RenderablePixel
[src]

[src]

[src]

impl<L, D, P0, P1, P2, P3, P4, P5> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>, Texture<L, D, P2>, Texture<L, D, P3>, Texture<L, D, P4>, Texture<L, D, P5>) where
    L: Layerable,
    D: Dimensionable,
    D::Size: Copy,
    P0: ColorPixel + RenderablePixel,
    P1: ColorPixel + RenderablePixel,
    P2: ColorPixel + RenderablePixel,
    P3: ColorPixel + RenderablePixel,
    P4: ColorPixel + RenderablePixel,
    P5: ColorPixel + RenderablePixel
[src]

[src]

[src]

impl<L, D, P0, P1, P2, P3, P4, P5, P6> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>, Texture<L, D, P2>, Texture<L, D, P3>, Texture<L, D, P4>, Texture<L, D, P5>, Texture<L, D, P6>) where
    L: Layerable,
    D: Dimensionable,
    D::Size: Copy,
    P0: ColorPixel + RenderablePixel,
    P1: ColorPixel + RenderablePixel,
    P2: ColorPixel + RenderablePixel,
    P3: ColorPixel + RenderablePixel,
    P4: ColorPixel + RenderablePixel,
    P5: ColorPixel + RenderablePixel,
    P6: ColorPixel + RenderablePixel
[src]

[src]

[src]

impl<L, D, P0, P1, P2, P3, P4, P5, P6, P7> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>, Texture<L, D, P2>, Texture<L, D, P3>, Texture<L, D, P4>, Texture<L, D, P5>, Texture<L, D, P6>, Texture<L, D, P7>) where
    L: Layerable,
    D: Dimensionable,
    D::Size: Copy,
    P0: ColorPixel + RenderablePixel,
    P1: ColorPixel + RenderablePixel,
    P2: ColorPixel + RenderablePixel,
    P3: ColorPixel + RenderablePixel,
    P4: ColorPixel + RenderablePixel,
    P5: ColorPixel + RenderablePixel,
    P6: ColorPixel + RenderablePixel,
    P7: ColorPixel + RenderablePixel
[src]

[src]

[src]

impl<L, D, P0, P1, P2, P3, P4, P5, P6, P7, P8> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>, Texture<L, D, P2>, Texture<L, D, P3>, Texture<L, D, P4>, Texture<L, D, P5>, Texture<L, D, P6>, Texture<L, D, P7>, Texture<L, D, P8>) where
    L: Layerable,
    D: Dimensionable,
    D::Size: Copy,
    P0: ColorPixel + RenderablePixel,
    P1: ColorPixel + RenderablePixel,
    P2: ColorPixel + RenderablePixel,
    P3: ColorPixel + RenderablePixel,
    P4: ColorPixel + RenderablePixel,
    P5: ColorPixel + RenderablePixel,
    P6: ColorPixel + RenderablePixel,
    P7: ColorPixel + RenderablePixel,
    P8: ColorPixel + RenderablePixel
[src]

[src]

[src]

impl<L, D, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>, Texture<L, D, P2>, Texture<L, D, P3>, Texture<L, D, P4>, Texture<L, D, P5>, Texture<L, D, P6>, Texture<L, D, P7>, Texture<L, D, P8>, Texture<L, D, P9>) where
    L: Layerable,
    D: Dimensionable,
    D::Size: Copy,
    P0: ColorPixel + RenderablePixel,
    P1: ColorPixel + RenderablePixel,
    P2: ColorPixel + RenderablePixel,
    P3: ColorPixel + RenderablePixel,
    P4: ColorPixel + RenderablePixel,
    P5: ColorPixel + RenderablePixel,
    P6: ColorPixel + RenderablePixel,
    P7: ColorPixel + RenderablePixel,
    P8: ColorPixel + RenderablePixel,
    P9: ColorPixel + RenderablePixel
[src]

[src]

[src]

Implementors