Struct luminance_front::pixel::Depth32F
source · [−]pub struct Depth32F;
Expand description
A depth 32-bit floating pixel format.
Trait Implementations
sourceimpl<B, D> DepthStencilSlot<B, D> for Depth32F where
B: Framebuffer<D> + Texture<D, Depth32F> + ?Sized,
D: Dimensionable,
<D as Dimensionable>::Size: Copy,
impl<B, D> DepthStencilSlot<B, D> for Depth32F where
B: Framebuffer<D> + Texture<D, Depth32F> + ?Sized,
D: Dimensionable,
<D as Dimensionable>::Size: Copy,
type DepthStencilTexture = Texture<B, D, Depth32F>
type DepthStencilTexture = Texture<B, D, Depth32F>
Depth data associated with this slot.
sourcefn depth_format() -> Option<PixelFormat>
fn depth_format() -> Option<PixelFormat>
Turn a depth/stencil slot into a pixel format representing the depth information.
sourcefn reify_depth_texture<C>(
ctx: &mut C,
size: <D as Dimensionable>::Size,
mipmaps: usize,
sampler: &Sampler,
framebuffer: &mut <B as Framebuffer<D>>::FramebufferRepr
) -> Result<<Depth32F as DepthStencilSlot<B, D>>::DepthStencilTexture, FramebufferError> where
C: GraphicsContext<Backend = B>,
fn reify_depth_texture<C>(
ctx: &mut C,
size: <D as Dimensionable>::Size,
mipmaps: usize,
sampler: &Sampler,
framebuffer: &mut <B as Framebuffer<D>>::FramebufferRepr
) -> Result<<Depth32F as DepthStencilSlot<B, D>>::DepthStencilTexture, FramebufferError> where
C: GraphicsContext<Backend = B>,
Reify a raw texture into a depth slot.
sourceimpl Pixel for Depth32F
impl Pixel for Depth32F
type Encoding = f32
type Encoding = f32
Encoding of a single pixel. It should match the PixelFormat
mapping.
type RawEncoding = f32
type RawEncoding = f32
Raw encoding of a single pixel; i.e. that is, encoding of underlying values in contiguous
texture memory, without taking into account channels. It should match the PixelFormat
mapping. Read more
type SamplerType = Floating
type SamplerType = Floating
The type of sampler required to access this pixel format.
sourcefn pixel_format() -> PixelFormat
fn pixel_format() -> PixelFormat
Reify to PixelFormat
.
impl Copy for Depth32F
impl DepthPixel for Depth32F
Auto Trait Implementations
impl RefUnwindSafe for Depth32F
impl Send for Depth32F
impl Sync for Depth32F
impl Unpin for Depth32F
impl UnwindSafe for Depth32F
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more