pub enum TextureColorSpace {
Srgb,
Linear,
NormalTangent,
}Expand description
Color-space interpretation of a 3D texture during mipmap filtering and shader sampling.
Variants§
Srgb
Gamma-encoded sRGB color data (albedo, emissive, sheen color).
Linear
Linear scalar/color data (metallic-roughness, occlusion, clearcoat, transmission).
NormalTangent
Tangent-space normal map ([0..255] -> [-1..1], re-normalized across mip levels).
Trait Implementations§
Source§impl Clone for TextureColorSpace
impl Clone for TextureColorSpace
impl Copy for TextureColorSpace
Source§impl Debug for TextureColorSpace
impl Debug for TextureColorSpace
Source§impl Default for TextureColorSpace
impl Default for TextureColorSpace
impl Eq for TextureColorSpace
Source§impl Hash for TextureColorSpace
impl Hash for TextureColorSpace
Source§impl PartialEq for TextureColorSpace
impl PartialEq for TextureColorSpace
impl StructuralPartialEq for TextureColorSpace
Auto Trait Implementations§
impl Forget for TextureColorSpace
impl Freeze for TextureColorSpace
impl Move for TextureColorSpace
impl RefUnwindSafe for TextureColorSpace
impl Send for TextureColorSpace
impl Sync for TextureColorSpace
impl Unpin for TextureColorSpace
impl UnsafeUnpin for TextureColorSpace
impl UnwindSafe for TextureColorSpace
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