Enum dae_parser::SurfaceType
source · pub enum SurfaceType {
Untyped,
_1D,
_2D,
_3D,
Rect,
Cube,
Depth,
}
Expand description
Specifies a surface on a cube.
Variants§
Untyped
When a surface’s type attribute is set to Untyped
,
its type is initially unknown and established later by the context in which
it is used, such as by a texture sampler that references it.
A surface of any other type may be changed into an Untyped
surface at
run-time, as if it were created by NewParam
, using EffectSetParam
.
If there is a type mismatch between a EffectSetParam
operation and
what the run-time decides the type should be, the result is profile- and
platform-specific behavior.
_1D
A one dimensional texture.
_2D
A two dimensional texture.
_3D
A three dimensional texture.
Rect
A RECT texture, see http://www.opengl.org/registry/specs/ARB/texture_rectangle.txt.
Cube
A cube map.
Depth
A depth map.
Implementations§
Trait Implementations§
source§impl Clone for SurfaceType
impl Clone for SurfaceType
source§fn clone(&self) -> SurfaceType
fn clone(&self) -> SurfaceType
Returns a copy 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 SurfaceType
impl Debug for SurfaceType
source§impl Default for SurfaceType
impl Default for SurfaceType
source§impl Display for SurfaceType
impl Display for SurfaceType
source§impl FromStr for SurfaceType
impl FromStr for SurfaceType
source§impl PartialEq<SurfaceType> for SurfaceType
impl PartialEq<SurfaceType> for SurfaceType
source§fn eq(&self, other: &SurfaceType) -> bool
fn eq(&self, other: &SurfaceType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.