Enum wgpu_types::TextureSampleType [−][src]
pub enum TextureSampleType {
Float {
filterable: bool,
},
Depth,
Sint,
Uint,
}Expand description
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: boolIf 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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for TextureSampleTypeimpl Send for TextureSampleTypeimpl Sync for TextureSampleTypeimpl Unpin for TextureSampleTypeimpl UnwindSafe for TextureSampleTypeBlanket Implementations
Mutably borrows from an owned value. Read more