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 SurfaceOption
s.
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SurfaceOption
impl Debug for SurfaceOption
Source§impl Display for SurfaceOption
impl Display for SurfaceOption
Source§impl FromStr for SurfaceOption
impl FromStr for SurfaceOption
Source§impl PartialEq for SurfaceOption
impl PartialEq for SurfaceOption
impl Copy for SurfaceOption
impl Eq for SurfaceOption
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 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