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
sourceimpl SurfaceType
impl SurfaceType
Trait Implementations
sourceimpl Clone for SurfaceType
impl Clone for SurfaceType
sourcefn clone(&self) -> SurfaceType
fn clone(&self) -> SurfaceType
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 SurfaceType
impl Debug for SurfaceType
sourceimpl Default for SurfaceType
impl Default for SurfaceType
sourceimpl Display for SurfaceType
impl Display for SurfaceType
sourceimpl FromStr for SurfaceType
impl FromStr for SurfaceType
sourceimpl PartialEq<SurfaceType> for SurfaceType
impl PartialEq<SurfaceType> for SurfaceType
sourcefn eq(&self, other: &SurfaceType) -> bool
fn eq(&self, other: &SurfaceType) -> bool
impl Copy for SurfaceType
impl Eq for SurfaceType
impl StructuralEq for SurfaceType
impl StructuralPartialEq for SurfaceType
Auto Trait Implementations
impl RefUnwindSafe for SurfaceType
impl Send for SurfaceType
impl Sync for SurfaceType
impl Unpin for SurfaceType
impl UnwindSafe for SurfaceType
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