Struct luminance_front::pixel::SRGBA8UI
source · [−]pub struct SRGBA8UI;
Expand description
An 8-bit unsigned integral red, green and blue pixel format in sRGB colorspace, with linear alpha channel.
Trait Implementations
sourceimpl Pixel for SRGBA8UI
impl Pixel for SRGBA8UI
type Encoding = [u8; 4]
type Encoding = [u8; 4]
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 = NormUnsigned
type SamplerType = NormUnsigned
The type of sampler required to access this pixel format.
sourcefn pixel_format() -> PixelFormat
fn pixel_format() -> PixelFormat
Reify to PixelFormat
.
impl ColorPixel for SRGBA8UI
impl Copy for SRGBA8UI
impl RenderablePixel for SRGBA8UI
Auto Trait Implementations
impl RefUnwindSafe for SRGBA8UI
impl Send for SRGBA8UI
impl Sync for SRGBA8UI
impl Unpin for SRGBA8UI
impl UnwindSafe for SRGBA8UI
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more