Enum wgpu_types::TextureSampleType [−][src]
pub enum TextureSampleType { Float { filterable: bool, }, Depth, Sint, Uint, }
Specific type of a sample in a texture binding.
WebGPU spec: https://gpuweb.github.io/gpuweb/#enumdef-gputexturesampletype
Variants
Sampling returns floats.
Example GLSL syntax:
layout(binding = 0)
uniform texture2D t;
Show fields
Fields of Float
filterable: bool
If filterable
is false, the texture can’t be sampled with
a filtering sampler.
Sampling does the depth reference comparison.
Example GLSL syntax:
layout(binding = 0)
uniform texture2DShadow t;
Sampling returns signed integers.
Example GLSL syntax:
layout(binding = 0)
uniform itexture2D t;
Sampling returns unsigned integers.
Example GLSL syntax:
layout(binding = 0)
uniform utexture2D t;
Trait Implementations
impl Clone for TextureSampleType
[src]
impl Clone for TextureSampleType
[src]fn clone(&self) -> TextureSampleType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TextureSampleType
[src]
impl Copy for TextureSampleType
[src]impl Default for TextureSampleType
[src]
impl Default for TextureSampleType
[src]impl Eq for TextureSampleType
[src]
impl Eq for TextureSampleType
[src]impl Hash for TextureSampleType
[src]
impl Hash for TextureSampleType
[src]impl PartialEq<TextureSampleType> for TextureSampleType
[src]
impl PartialEq<TextureSampleType> for TextureSampleType
[src]fn eq(&self, other: &TextureSampleType) -> bool
[src]
fn ne(&self, other: &TextureSampleType) -> bool
[src]
impl StructuralEq for TextureSampleType
[src]
impl StructuralEq for TextureSampleType
[src]Auto Trait Implementations
impl RefUnwindSafe for TextureSampleType
impl RefUnwindSafe for TextureSampleType
impl Send for TextureSampleType
impl Send for TextureSampleType
impl Sync for TextureSampleType
impl Sync for TextureSampleType
impl Unpin for TextureSampleType
impl Unpin for TextureSampleType
impl UnwindSafe for TextureSampleType
impl UnwindSafe for TextureSampleType