pub struct R8UI;Expand description
A red 8-bit unsigned integral pixel format.
Trait Implementations§
Source§impl Pixel for R8UI
impl Pixel for R8UI
Source§type Encoding = u8
type Encoding = u8
Encoding of a single pixel. It should match the
PixelFormat mapping.Source§type RawEncoding = u8
type RawEncoding = u8
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 = Unsigned
type SamplerType = Unsigned
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 R8UI
impl Copy for R8UI
impl RenderablePixel for R8UI
Auto Trait Implementations§
impl Freeze for R8UI
impl RefUnwindSafe for R8UI
impl Send for R8UI
impl Sync for R8UI
impl Unpin for R8UI
impl UnwindSafe for R8UI
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