pub struct NormR16I;
Expand description
A red 16-bit signed integral pixel format, accessed as normalized floating pixels.
Trait Implementations
sourceimpl Pixel for NormR16I
impl Pixel for NormR16I
type Encoding = i16
type Encoding = i16
Encoding of a single pixel. It should match the PixelFormat
mapping.
type RawEncoding = i16
type RawEncoding = i16
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 = NormIntegral
type SamplerType = NormIntegral
The type of sampler required to access this pixel format.
sourcefn pixel_format() -> PixelFormat
fn pixel_format() -> PixelFormat
Reify to PixelFormat
.
impl ColorPixel for NormR16I
impl Copy for NormR16I
impl RenderablePixel for NormR16I
Auto Trait Implementations
impl RefUnwindSafe for NormR16I
impl Send for NormR16I
impl Sync for NormR16I
impl Unpin for NormR16I
impl UnwindSafe for NormR16I
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<B, D, P> ColorSlot<B, D> for P where
B: Framebuffer<D> + Texture<D, P> + ?Sized,
D: Dimensionable,
P: ColorPixel + RenderablePixel,
<D as Dimensionable>::Size: Copy,
impl<B, D, P> ColorSlot<B, D> for P where
B: Framebuffer<D> + Texture<D, P> + ?Sized,
D: Dimensionable,
P: ColorPixel + RenderablePixel,
<D as Dimensionable>::Size: Copy,
type ColorTextures = Texture<B, D, P>
type ColorTextures = Texture<B, D, P>
The associated data. Read more
sourcefn color_formats() -> Vec<PixelFormat, Global>
fn color_formats() -> Vec<PixelFormat, Global>
Pixel format representing the color slot. Read more
sourcefn reify_color_textures<C>(
ctx: &mut C,
size: <D as Dimensionable>::Size,
mipmaps: usize,
sampler: &Sampler,
framebuffer: &mut <B as Framebuffer<D>>::FramebufferRepr,
attachment_index: usize
) -> Result<<P as ColorSlot<B, D>>::ColorTextures, FramebufferError> where
C: GraphicsContext<Backend = B>,
fn reify_color_textures<C>(
ctx: &mut C,
size: <D as Dimensionable>::Size,
mipmaps: usize,
sampler: &Sampler,
framebuffer: &mut <B as Framebuffer<D>>::FramebufferRepr,
attachment_index: usize
) -> Result<<P as ColorSlot<B, D>>::ColorTextures, FramebufferError> where
C: GraphicsContext<Backend = B>,
Reify the color slots into 0, 1 or several textures. 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