pub enum SurfaceChannels {
RGB,
RGBA,
L,
LA,
D,
XYZ,
XYZW,
}
Expand description
The per-texel layout of the format. The length of the enumeration string indicates how many channels there are and each letter represents the name of a channel. There are typically 1 to 4 channels.
Variants§
RGB
Red/Green/Blue color map.
RGBA
Red/Green/Blue/Alpha map, often used for color and transparency or other things packed into channel A, such as specular power.
L
Luminance map, often used for light mapping.
LA
Luminance/Alpha map, often used for light mapping.
D
Depth map, often used for displacement, parallax, relief, or shadow mapping.
XYZ
Typically used for normal maps or three-component displacement maps.
XYZW
Typically used for normal maps, where W
is the depth for relief or parallax mapping.
Implementations§
Trait Implementations§
Source§impl Clone for SurfaceChannels
impl Clone for SurfaceChannels
Source§fn clone(&self) -> SurfaceChannels
fn clone(&self) -> SurfaceChannels
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 SurfaceChannels
impl Debug for SurfaceChannels
Source§impl Display for SurfaceChannels
impl Display for SurfaceChannels
Source§impl FromStr for SurfaceChannels
impl FromStr for SurfaceChannels
Source§impl PartialEq for SurfaceChannels
impl PartialEq for SurfaceChannels
impl Copy for SurfaceChannels
impl Eq for SurfaceChannels
impl StructuralPartialEq for SurfaceChannels
Auto Trait Implementations§
impl Freeze for SurfaceChannels
impl RefUnwindSafe for SurfaceChannels
impl Send for SurfaceChannels
impl Sync for SurfaceChannels
impl Unpin for SurfaceChannels
impl UnwindSafe for SurfaceChannels
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