Enum gfx::device::tex::Kind
[−]
[src]
pub enum Kind { D1, D1Array, D2, D2Array, D2MultiSample(AaMode), D2MultiSampleArray(AaMode), Cube(CubeFace), D3, }
Specifies how a given texture may be used. The available texture types are
restricted by what Metal exposes, though this could conceivably be
extended in the future. Note that a single texture can only ever be of
one kind. A texture created as Texture2D
will forever be Texture2D
.
Variants
D1
A single row of texels.
D1Array
An array of rows of texels. Equivalent to Texture2D except that texels in a different row are not sampled.
D2
A traditional 2D texture, with rows arranged contiguously.
D2Array
An array of 2D textures. Equivalent to Texture3D except that texels in a different depth level are not sampled.
D2MultiSample(AaMode)
A multi-sampled 2D texture. Each pixel may have more than one data value (sample) associated with it.
D2MultiSampleArray(AaMode)
A array of multi-sampled 2D textures.
Cube(CubeFace)
A set of 6 2D textures, one for each face of a cube.
When creating a cube texture, the face is ignored, and storage for all 6 faces is created. When updating, only the face specified is updated.
D3
A volume texture, with each 2D layer arranged contiguously.
Methods
impl Kind
[src]
fn get_aa_mode(&self) -> Option<AaMode>
Return the anti-aliasing mode of the texture
Trait Implementations
impl Debug for Kind
[src]
impl Clone for Kind
[src]
fn clone(&self) -> Kind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Kind
[src]
impl Hash for Kind
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl PartialOrd for Kind
[src]
fn partial_cmp(&self, __arg_0: &Kind) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Kind) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Kind) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Kind) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Kind) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialEq for Kind
[src]
fn eq(&self, __arg_0: &Kind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Kind) -> bool
This method tests for !=
.
impl Ord for Kind
[src]
fn cmp(&self, __arg_0: &Kind) -> Ordering
This method returns an Ordering
between self
and other
. Read more