pub struct NormRG8I;Expand description
A red and green 8-bit integral pixel format, accessed as normalized floating pixels.
Trait Implementations§
Source§impl Pixel for NormRG8I
impl Pixel for NormRG8I
Source§type RawEncoding = i8
type RawEncoding = i8
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.Source§type SamplerType = NormIntegral
type SamplerType = NormIntegral
The type of sampler required to access this pixel format.
Source§fn pixel_format() -> PixelFormat
fn pixel_format() -> PixelFormat
Reify to
PixelFormat.impl ColorPixel for NormRG8I
impl Copy for NormRG8I
impl RenderablePixel for NormRG8I
Auto Trait Implementations§
impl Freeze for NormRG8I
impl RefUnwindSafe for NormRG8I
impl Send for NormRG8I
impl Sync for NormRG8I
impl Unpin for NormRG8I
impl UnwindSafe for NormRG8I
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<B, D, P> ColorSlot<B, D> for Pwhere
B: Framebuffer<D> + Texture<D, P> + ?Sized,
D: Dimensionable,
<D as Dimensionable>::Size: Copy,
P: ColorPixel + RenderablePixel,
impl<B, D, P> ColorSlot<B, D> for Pwhere
B: Framebuffer<D> + Texture<D, P> + ?Sized,
D: Dimensionable,
<D as Dimensionable>::Size: Copy,
P: ColorPixel + RenderablePixel,
Source§type ColorTextures = Texture<B, D, P>
type ColorTextures = Texture<B, D, P>
The associated data. Read more
Source§fn color_formats() -> Vec<PixelFormat>
fn color_formats() -> Vec<PixelFormat>
Pixel format representing the color slot. Read more
Source§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>,
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