Enum wgpu_types::TextureSampleType
source · 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§
Float
Fields
Sampling returns floats.
Example GLSL syntax:
layout(binding = 0)
uniform texture2D t;Depth
Sampling does the depth reference comparison.
Example GLSL syntax:
layout(binding = 0)
uniform texture2DShadow t;Sint
Sampling returns signed integers.
Example GLSL syntax:
layout(binding = 0)
uniform itexture2D t;Uint
Sampling returns unsigned integers.
Example GLSL syntax:
layout(binding = 0)
uniform utexture2D t;Trait Implementations§
source§impl Clone for TextureSampleType
impl Clone for TextureSampleType
source§fn clone(&self) -> TextureSampleType
fn clone(&self) -> TextureSampleType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more