Enum gfx::device::shade::SamplerType
[−]
[src]
pub enum SamplerType { SamplerBuffer, Sampler1D(IsArray, IsShadow), Sampler2D(IsArray, IsShadow, IsMultiSample, IsRect), Sampler3D, SamplerCube(IsShadow), }
What texture type this sampler samples from.
A single sampler cannot be used with multiple texture types.
Variants
SamplerBuffer
Sample from a buffer.
Sampler1D(IsArray, IsShadow)
Sample from a 1D texture
Sampler2D(IsArray, IsShadow, IsMultiSample, IsRect)
Sample from a 2D texture
Sampler3D
Sample from a 3D texture
SamplerCube(IsShadow)
Sample from a cubemap.
Trait Implementations
impl Debug for SamplerType
[src]
impl PartialEq for SamplerType
[src]
fn eq(&self, __arg_0: &SamplerType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SamplerType) -> bool
This method tests for !=
.
impl Clone for SamplerType
[src]
fn clone(&self) -> SamplerType
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