pub struct RGB8UI;
Expand description
A red, green and blue 8-bit unsigned integral pixel format.
Trait Implementations
sourceimpl Pixel for RGB8UI
impl Pixel for RGB8UI
type Encoding = [u8; 3]
type Encoding = [u8; 3]
Encoding of a single pixel. It should match the PixelFormat
mapping.
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. Read more
type SamplerType = Unsigned
type SamplerType = Unsigned
The type of sampler required to access this pixel format.
sourcefn pixel_format() -> PixelFormat
fn pixel_format() -> PixelFormat
Reify to PixelFormat
.
impl ColorPixel for RGB8UI
impl Copy for RGB8UI
impl RenderablePixel for RGB8UI
Auto Trait Implementations
impl RefUnwindSafe for RGB8UI
impl Send for RGB8UI
impl Sync for RGB8UI
impl Unpin for RGB8UI
impl UnwindSafe for RGB8UI
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