pub enum SurfaceOption {
SrgbGamma,
Normalized3,
Normalized4,
Compressible,
}Expand description
Contains additional hints about data relationships and other things to help an application pick the best format.
Variants§
SrgbGamma
Colors are stored with respect to the sRGB 2.2 gamma curve rather than linear.
Normalized3
The texel’s XYZ/RGB should be normalized such as in a normal map.
Normalized4
The texel’s XYZW/RGBA should be normalized such as in a normal map.
Compressible
The surface may use run-time compression.
Consider the best compression based on desired SurfaceChannels,
SurfaceRange, SurfacePrecision, and SurfaceOptions.
Implementations§
Trait Implementations§
Source§impl Clone for SurfaceOption
impl Clone for SurfaceOption
Source§fn clone(&self) -> SurfaceOption
fn clone(&self) -> SurfaceOption
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 SurfaceOption
Source§impl Debug for SurfaceOption
impl Debug for SurfaceOption
Source§impl Display for SurfaceOption
impl Display for SurfaceOption
impl Eq for SurfaceOption
Source§impl FromStr for SurfaceOption
impl FromStr for SurfaceOption
Source§impl PartialEq for SurfaceOption
impl PartialEq for SurfaceOption
Source§fn eq(&self, other: &SurfaceOption) -> bool
fn eq(&self, other: &SurfaceOption) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SurfaceOption
Auto Trait Implementations§
impl Freeze for SurfaceOption
impl RefUnwindSafe for SurfaceOption
impl Send for SurfaceOption
impl Sync for SurfaceOption
impl Unpin for SurfaceOption
impl UnsafeUnpin for SurfaceOption
impl UnwindSafe for SurfaceOption
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