Struct wgpu::DownlevelProperties[][src]

pub struct DownlevelProperties {
    pub flags: DownlevelFlags,
    pub shader_model: ShaderModel,
}

Lists various ways the underlying platform does not conform to the WebGPU standard.

Fields

flags: DownlevelFlags

Combined boolean flags.

shader_model: ShaderModel

Which collections of features shaders support. Defined in terms of D3D’s shader models.

Implementations

impl DownlevelProperties[src]

pub fn is_webgpu_compliant(self) -> bool[src]

Returns true if the underlying platform offers complete support of the baseline WebGPU standard.

If this returns false, some parts of the API will result in validation errors where they would not normally. These parts can be determined by the values in this structure.

Trait Implementations

impl Clone for DownlevelProperties[src]

impl Copy for DownlevelProperties[src]

impl Debug for DownlevelProperties[src]

impl Default for DownlevelProperties[src]

impl Eq for DownlevelProperties[src]

impl Hash for DownlevelProperties[src]

impl Ord for DownlevelProperties[src]

impl PartialEq<DownlevelProperties> for DownlevelProperties[src]

impl PartialOrd<DownlevelProperties> for DownlevelProperties[src]

impl StructuralEq for DownlevelProperties[src]

impl StructuralPartialEq for DownlevelProperties[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> Downcast<T> for T

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<N> NodeTrait for N where
    N: Copy + Ord + Hash
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T