Enum gfx::shade::core::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
Buffer | Sample from a buffer. | |
D1 | Sample from a 1D texture | |
D2 | Sample from a 2D texture | |
D3 | Sample from a 3D texture | |
Cube | Sample from a cubemap. |
Methods
impl TextureType
fn can_sample(&self) -> bool
Check if this texture can be used with a sampler.