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;
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
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 TextureSampleType
impl Send for TextureSampleType
impl Sync for TextureSampleType
impl Unpin for TextureSampleType
impl UnwindSafe for TextureSampleType
Blanket Implementations
Mutably borrows from an owned value. Read more