Enum wgpu_types::TextureSampleType [−][src]
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
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 Debug for TextureSampleType
[src]
impl Default for TextureSampleType
[src]
impl Eq for TextureSampleType
[src]
impl Hash for TextureSampleType
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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 StructuralPartialEq for TextureSampleType
[src]
Auto Trait Implementations
impl RefUnwindSafe for TextureSampleType
[src]
impl Send for TextureSampleType
[src]
impl Sync for TextureSampleType
[src]
impl Unpin for TextureSampleType
[src]
impl UnwindSafe for TextureSampleType
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,