[−][src]Trait luminance::framebuffer::DepthSlot
A framebuffer has a depth slot. A depth slot can either be empty (the unit type is used, ()
)
or a single depth format.
Associated Types
type DepthTexture
Texture associated with this color slot.
Required methods
fn depth_format() -> Option<PixelFormat>
Turn a depth slot into a pixel format.
fn reify_texture<C, T>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
texture: T
) -> Self::DepthTexture where
C: GraphicsContext,
T: Into<Option<GLuint>>,
ctx: &mut C,
size: D::Size,
mipmaps: usize,
texture: T
) -> Self::DepthTexture where
C: GraphicsContext,
T: Into<Option<GLuint>>,
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]
L: Layerable,
D: Dimensionable,
D::Size: Copy,
type DepthTexture = ()
fn depth_format() -> Option<PixelFormat>
[src]
fn reify_texture<C, T>(
_: &mut C,
_: D::Size,
_: usize,
_: T
) -> Self::DepthTexture where
C: GraphicsContext,
T: Into<Option<GLuint>>,
[src]
_: &mut C,
_: D::Size,
_: usize,
_: T
) -> Self::DepthTexture where
C: GraphicsContext,
T: Into<Option<GLuint>>,
Implementors
impl<L, D, P> DepthSlot<L, D> for P where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P: DepthPixel,
[src]
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P: DepthPixel,
type DepthTexture = Texture<L, D, P>
fn depth_format() -> Option<PixelFormat>
[src]
fn reify_texture<C, T>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
texture: T
) -> Self::DepthTexture where
C: GraphicsContext,
T: Into<Option<GLuint>>,
[src]
ctx: &mut C,
size: D::Size,
mipmaps: usize,
texture: T
) -> Self::DepthTexture where
C: GraphicsContext,
T: Into<Option<GLuint>>,