Enum wgpu::ShaderModel
source · [−]pub enum ShaderModel {
Sm2,
Sm4,
Sm5,
}
Expand description
Collections of shader features a device supports if they support less than WebGPU normally allows.
Variants
Sm2
Extremely limited shaders, including a total instruction limit.
Sm4
Missing minor features and storage images.
Sm5
WebGPU supports shader module 5.
Trait Implementations
sourceimpl Clone for ShaderModel
impl Clone for ShaderModel
sourcefn clone(&self) -> ShaderModel
fn clone(&self) -> ShaderModel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ShaderModel
impl Debug for ShaderModel
sourceimpl Hash for ShaderModel
impl Hash for ShaderModel
sourceimpl Ord for ShaderModel
impl Ord for ShaderModel
sourcefn cmp(&self, other: &ShaderModel) -> Ordering
fn cmp(&self, other: &ShaderModel) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ShaderModel> for ShaderModel
impl PartialEq<ShaderModel> for ShaderModel
sourcefn eq(&self, other: &ShaderModel) -> bool
fn eq(&self, other: &ShaderModel) -> bool
sourceimpl PartialOrd<ShaderModel> for ShaderModel
impl PartialOrd<ShaderModel> for ShaderModel
sourcefn partial_cmp(&self, other: &ShaderModel) -> Option<Ordering>
fn partial_cmp(&self, other: &ShaderModel) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ShaderModel
impl Eq for ShaderModel
impl StructuralEq for ShaderModel
impl StructuralPartialEq for ShaderModel
Auto Trait Implementations
impl RefUnwindSafe for ShaderModel
impl Send for ShaderModel
impl Sync for ShaderModel
impl Unpin for ShaderModel
impl UnwindSafe for ShaderModel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.