Struct wgpu_types::DownlevelProperties
source · pub struct DownlevelProperties {
pub flags: DownlevelFlags,
pub shader_model: ShaderModel,
}Expand description
Lists various ways the underlying platform does not conform to the WebGPU standard.
Fields§
§flags: DownlevelFlagsCombined boolean flags.
shader_model: ShaderModelWhich collections of features shaders support. Defined in terms of D3D’s shader models.
Implementations§
source§impl DownlevelProperties
impl DownlevelProperties
sourcepub fn is_webgpu_compliant(self) -> bool
pub fn is_webgpu_compliant(self) -> bool
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§
source§impl Clone for DownlevelProperties
impl Clone for DownlevelProperties
source§fn clone(&self) -> DownlevelProperties
fn clone(&self) -> DownlevelProperties
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for DownlevelProperties
impl Debug for DownlevelProperties
source§impl Default for DownlevelProperties
impl Default for DownlevelProperties
source§impl Hash for DownlevelProperties
impl Hash for DownlevelProperties
source§impl Ord for DownlevelProperties
impl Ord for DownlevelProperties
source§fn cmp(&self, other: &DownlevelProperties) -> Ordering
fn cmp(&self, other: &DownlevelProperties) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<DownlevelProperties> for DownlevelProperties
impl PartialEq<DownlevelProperties> for DownlevelProperties
source§fn eq(&self, other: &DownlevelProperties) -> bool
fn eq(&self, other: &DownlevelProperties) -> bool
source§impl PartialOrd<DownlevelProperties> for DownlevelProperties
impl PartialOrd<DownlevelProperties> for DownlevelProperties
source§fn partial_cmp(&self, other: &DownlevelProperties) -> Option<Ordering>
fn partial_cmp(&self, other: &DownlevelProperties) -> Option<Ordering>
1.0.0 · source§fn 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 more