pub enum PixelLayout {
Bgra8,
Rgba8,
Rgba16F {
scrgb: bool,
},
A2b10g10r10,
}Expand description
The decode layout of the raw read-back bytes, classified from the backend’s own swapchain / texture format. Carries everything the decoder needs so the math stays free of any backend format enum.
Variants§
Bgra8
8-bit BGRA (the common SDR swapchain on Windows / macOS); channels are swizzled to RGBA and alpha is forced opaque.
Rgba8
8-bit RGBA; passes through with alpha forced opaque.
Rgba16F
Four IEEE 754 halfs (8 B/px). scrgb true applies the sRGB OETF to the
linear extended-range values; false passes PQ code values through clamped.
A2b10g10r10
Packed 2-10-10-10 unorm (one little-endian u32 per texel, R in the low 10 bits); the PQ fallback swapchain. Not display-ready, but a valid image.
Trait Implementations§
Source§impl Clone for PixelLayout
impl Clone for PixelLayout
Source§fn clone(&self) -> PixelLayout
fn clone(&self) -> PixelLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PixelLayout
Source§impl Debug for PixelLayout
impl Debug for PixelLayout
impl Eq for PixelLayout
Source§impl PartialEq for PixelLayout
impl PartialEq for PixelLayout
impl StructuralPartialEq for PixelLayout
Auto Trait Implementations§
impl Freeze for PixelLayout
impl RefUnwindSafe for PixelLayout
impl Send for PixelLayout
impl Sync for PixelLayout
impl Unpin for PixelLayout
impl UnsafeUnpin for PixelLayout
impl UnwindSafe for PixelLayout
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.