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 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 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 for SurfaceType
impl PartialEq for SurfaceType
impl Copy for SurfaceType
impl Eq for SurfaceType
impl StructuralPartialEq for SurfaceType
Auto Trait Implementations§
impl Freeze for SurfaceType
impl RefUnwindSafe for SurfaceType
impl Send for SurfaceType
impl Sync for SurfaceType
impl Unpin for SurfaceType
impl UnwindSafe for SurfaceType
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