[−][src]Trait luminance::framebuffer::ColorSlot
A framebuffer has a color slot. A color slot can either be empty (the unit type is used,()
)
or several color formats.
Associated Types
type ColorTextures
Textures associated with this color slot.
Required methods
fn color_formats() -> Vec<PixelFormat>
Turn a color slot into a list of pixel formats.
fn reify_textures<C, I>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
Reify a list of raw textures.
Implementations on Foreign Types
impl<L, D> ColorSlot<L, D> for () where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
[src]
L: Layerable,
D: Dimensionable,
D::Size: Copy,
type ColorTextures = ()
fn color_formats() -> Vec<PixelFormat>
[src]
fn reify_textures<C, I>(
_: &mut C,
_: D::Size,
_: usize,
_: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
[src]
_: &mut C,
_: D::Size,
_: usize,
_: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
impl<L, D, P10, P11> ColorSlot<L, D> for (P10, P11) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
[src]
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
type ColorTextures = (Texture<L, D, P10>, Texture<L, D, P11>)
fn color_formats() -> Vec<PixelFormat>
[src]
fn reify_textures<C, I>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
[src]
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
impl<L, D, P9, P10, P11> ColorSlot<L, D> for (P9, P10, P11) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P9: ColorPixel + RenderablePixel,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
[src]
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P9: ColorPixel + RenderablePixel,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
type ColorTextures = (Texture<L, D, P9>, Texture<L, D, P10>, Texture<L, D, P11>)
fn color_formats() -> Vec<PixelFormat>
[src]
fn reify_textures<C, I>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
[src]
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
impl<L, D, P8, P9, P10, P11> ColorSlot<L, D> for (P8, P9, P10, P11) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P8: ColorPixel + RenderablePixel,
P9: ColorPixel + RenderablePixel,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
[src]
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P8: ColorPixel + RenderablePixel,
P9: ColorPixel + RenderablePixel,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
type ColorTextures = (Texture<L, D, P8>, Texture<L, D, P9>, Texture<L, D, P10>, Texture<L, D, P11>)
fn color_formats() -> Vec<PixelFormat>
[src]
fn reify_textures<C, I>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
[src]
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
impl<L, D, P7, P8, P9, P10, P11> ColorSlot<L, D> for (P7, P8, P9, P10, P11) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P7: ColorPixel + RenderablePixel,
P8: ColorPixel + RenderablePixel,
P9: ColorPixel + RenderablePixel,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
[src]
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P7: ColorPixel + RenderablePixel,
P8: ColorPixel + RenderablePixel,
P9: ColorPixel + RenderablePixel,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
type ColorTextures = (Texture<L, D, P7>, Texture<L, D, P8>, Texture<L, D, P9>, Texture<L, D, P10>, Texture<L, D, P11>)
fn color_formats() -> Vec<PixelFormat>
[src]
fn reify_textures<C, I>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
[src]
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
impl<L, D, P6, P7, P8, P9, P10, P11> ColorSlot<L, D> for (P6, P7, P8, P9, P10, P11) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P6: ColorPixel + RenderablePixel,
P7: ColorPixel + RenderablePixel,
P8: ColorPixel + RenderablePixel,
P9: ColorPixel + RenderablePixel,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
[src]
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P6: ColorPixel + RenderablePixel,
P7: ColorPixel + RenderablePixel,
P8: ColorPixel + RenderablePixel,
P9: ColorPixel + RenderablePixel,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
type ColorTextures = (Texture<L, D, P6>, Texture<L, D, P7>, Texture<L, D, P8>, Texture<L, D, P9>, Texture<L, D, P10>, Texture<L, D, P11>)
fn color_formats() -> Vec<PixelFormat>
[src]
fn reify_textures<C, I>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
[src]
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
impl<L, D, P5, P6, P7, P8, P9, P10, P11> ColorSlot<L, D> for (P5, P6, P7, P8, P9, P10, P11) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P5: ColorPixel + RenderablePixel,
P6: ColorPixel + RenderablePixel,
P7: ColorPixel + RenderablePixel,
P8: ColorPixel + RenderablePixel,
P9: ColorPixel + RenderablePixel,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
[src]
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P5: ColorPixel + RenderablePixel,
P6: ColorPixel + RenderablePixel,
P7: ColorPixel + RenderablePixel,
P8: ColorPixel + RenderablePixel,
P9: ColorPixel + RenderablePixel,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
type ColorTextures = (Texture<L, D, P5>, Texture<L, D, P6>, Texture<L, D, P7>, Texture<L, D, P8>, Texture<L, D, P9>, Texture<L, D, P10>, Texture<L, D, P11>)
fn color_formats() -> Vec<PixelFormat>
[src]
fn reify_textures<C, I>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
[src]
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
impl<L, D, P4, P5, P6, P7, P8, P9, P10, P11> ColorSlot<L, D> for (P4, P5, P6, P7, P8, P9, P10, P11) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P4: ColorPixel + RenderablePixel,
P5: ColorPixel + RenderablePixel,
P6: ColorPixel + RenderablePixel,
P7: ColorPixel + RenderablePixel,
P8: ColorPixel + RenderablePixel,
P9: ColorPixel + RenderablePixel,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
[src]
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P4: ColorPixel + RenderablePixel,
P5: ColorPixel + RenderablePixel,
P6: ColorPixel + RenderablePixel,
P7: ColorPixel + RenderablePixel,
P8: ColorPixel + RenderablePixel,
P9: ColorPixel + RenderablePixel,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
type ColorTextures = (Texture<L, D, P4>, Texture<L, D, P5>, Texture<L, D, P6>, Texture<L, D, P7>, Texture<L, D, P8>, Texture<L, D, P9>, Texture<L, D, P10>, Texture<L, D, P11>)
fn color_formats() -> Vec<PixelFormat>
[src]
fn reify_textures<C, I>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
[src]
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
impl<L, D, P3, P4, P5, P6, P7, P8, P9, P10, P11> ColorSlot<L, D> for (P3, P4, P5, P6, P7, P8, P9, P10, P11) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P3: ColorPixel + RenderablePixel,
P4: ColorPixel + RenderablePixel,
P5: ColorPixel + RenderablePixel,
P6: ColorPixel + RenderablePixel,
P7: ColorPixel + RenderablePixel,
P8: ColorPixel + RenderablePixel,
P9: ColorPixel + RenderablePixel,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
[src]
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P3: ColorPixel + RenderablePixel,
P4: ColorPixel + RenderablePixel,
P5: ColorPixel + RenderablePixel,
P6: ColorPixel + RenderablePixel,
P7: ColorPixel + RenderablePixel,
P8: ColorPixel + RenderablePixel,
P9: ColorPixel + RenderablePixel,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
type ColorTextures = (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>, Texture<L, D, P10>, Texture<L, D, P11>)
fn color_formats() -> Vec<PixelFormat>
[src]
fn reify_textures<C, I>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
[src]
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
impl<L, D, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11> ColorSlot<L, D> for (P2, P3, P4, P5, P6, P7, P8, P9, P10, P11) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P2: ColorPixel + RenderablePixel,
P3: ColorPixel + RenderablePixel,
P4: ColorPixel + RenderablePixel,
P5: ColorPixel + RenderablePixel,
P6: ColorPixel + RenderablePixel,
P7: ColorPixel + RenderablePixel,
P8: ColorPixel + RenderablePixel,
P9: ColorPixel + RenderablePixel,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
[src]
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P2: ColorPixel + RenderablePixel,
P3: ColorPixel + RenderablePixel,
P4: ColorPixel + RenderablePixel,
P5: ColorPixel + RenderablePixel,
P6: ColorPixel + RenderablePixel,
P7: ColorPixel + RenderablePixel,
P8: ColorPixel + RenderablePixel,
P9: ColorPixel + RenderablePixel,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
type ColorTextures = (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>, Texture<L, D, P10>, Texture<L, D, P11>)
fn color_formats() -> Vec<PixelFormat>
[src]
fn reify_textures<C, I>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
[src]
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
impl<L, D, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11> ColorSlot<L, D> for (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
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,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
[src]
L: Layerable,
D: Dimensionable,
D::Size: Copy,
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,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
type ColorTextures = (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>, Texture<L, D, P10>, Texture<L, D, P11>)
fn color_formats() -> Vec<PixelFormat>
[src]
fn reify_textures<C, I>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
[src]
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
impl<L, D, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11> ColorSlot<L, D> for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11) 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,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
[src]
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,
P10: ColorPixel + RenderablePixel,
P11: ColorPixel + RenderablePixel,
type ColorTextures = (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>, Texture<L, D, P10>, Texture<L, D, P11>)
fn color_formats() -> Vec<PixelFormat>
[src]
fn reify_textures<C, I>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
[src]
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
Implementors
impl<L, D, P> ColorSlot<L, D> for P where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
Self: ColorPixel + RenderablePixel,
[src]
L: Layerable,
D: Dimensionable,
D::Size: Copy,
Self: ColorPixel + RenderablePixel,
type ColorTextures = Texture<L, D, P>
fn color_formats() -> Vec<PixelFormat>
[src]
fn reify_textures<C, I>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
[src]
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self::ColorTextures where
C: GraphicsContext,
I: Iterator<Item = GLuint>,