Enum dae_parser::SurfaceChannels
source · [−]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
sourceimpl Clone for SurfaceChannels
impl Clone for SurfaceChannels
sourcefn clone(&self) -> SurfaceChannels
fn clone(&self) -> SurfaceChannels
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SurfaceChannels
impl Debug for SurfaceChannels
sourceimpl Display for SurfaceChannels
impl Display for SurfaceChannels
sourceimpl FromStr for SurfaceChannels
impl FromStr for SurfaceChannels
sourceimpl PartialEq<SurfaceChannels> for SurfaceChannels
impl PartialEq<SurfaceChannels> for SurfaceChannels
sourcefn eq(&self, other: &SurfaceChannels) -> bool
fn eq(&self, other: &SurfaceChannels) -> bool
impl Copy for SurfaceChannels
impl Eq for SurfaceChannels
impl StructuralEq for SurfaceChannels
impl StructuralPartialEq for SurfaceChannels
Auto Trait Implementations
impl RefUnwindSafe for SurfaceChannels
impl Send for SurfaceChannels
impl Sync for SurfaceChannels
impl Unpin for SurfaceChannels
impl UnwindSafe for SurfaceChannels
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more