Enum nannou::wgpu::ShaderModel [−]
pub enum ShaderModel {
Sm2,
Sm4,
Sm5,
}
Expand description
Collections of shader features a device supports if they support less than WebGPU normally allows.
Variants
Extremely limited shaders, including a total instruction limit.
Missing minor features and storage images.
WebGPU supports shader module 5.
Trait Implementations
impl Clone for ShaderModel
impl Clone for ShaderModel
pub fn clone(&self) -> ShaderModel
pub fn clone(&self) -> ShaderModel
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for ShaderModel
impl Debug for ShaderModel
impl Hash for ShaderModel
impl Hash for ShaderModel
impl Ord for ShaderModel
impl Ord for ShaderModel
pub fn cmp(&self, other: &ShaderModel) -> Ordering
pub fn cmp(&self, other: &ShaderModel) -> Ordering
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
impl PartialEq<ShaderModel> for ShaderModel
impl PartialEq<ShaderModel> for ShaderModel
impl PartialOrd<ShaderModel> for ShaderModel
impl PartialOrd<ShaderModel> for ShaderModel
pub fn partial_cmp(&self, other: &ShaderModel) -> Option<Ordering>
pub fn partial_cmp(&self, other: &ShaderModel) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl 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
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
Compare self to key
and return true
if they are equal.