Enum gfx_core::shade::TextureType
[−]
[src]
pub enum TextureType {
Buffer,
D1(IsArray),
D2(IsArray, IsMultiSample),
D3,
Cube(IsArray),
}A type of the texture variable. This has to match the actual data we bind to the shader.
Variants
BufferSample from a buffer.
D1(IsArray)Sample from a 1D texture
D2(IsArray, IsMultiSample)Sample from a 2D texture
D3Sample from a 3D texture
Cube(IsArray)Sample from a cubemap.
Methods
impl TextureType[src]
pub fn can_sample(&self) -> bool[src]
Check if this texture can be used with a sampler.
Trait Implementations
impl Clone for TextureType[src]
fn clone(&self) -> TextureType[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for TextureType[src]
impl Debug for TextureType[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Eq for TextureType[src]
impl Hash for TextureType[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl PartialEq for TextureType[src]
fn eq(&self, __arg_0: &TextureType) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &TextureType) -> bool[src]
This method tests for !=.