Enum gfx::shade::core::TextureType
[−]
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
fn can_sample(&self) -> bool
Check if this texture can be used with a sampler.
Trait Implementations
impl Debug for TextureType
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl PartialEq<TextureType> for TextureType
fn eq(&self, __arg_0: &TextureType) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &TextureType) -> bool
This method tests for !=.
impl Clone for TextureType
fn clone(&self) -> TextureType
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