pub enum ImplementedEnableExtension {
F16,
DualSourceBlending,
ClipDistances,
WgpuMeshShader,
WgpuRayQuery,
WgpuRayQueryVertexReturn,
WgpuRayTracingPipeline,
WgpuCooperativeMatrix,
DrawIndex,
PrimitiveIndex,
}Expand description
A variant of EnableExtension::Implemented.
Variants§
F16
Enables f16/half primitive support in all shader languages.
In the WGSL standard, this corresponds to enable f16;.
DualSourceBlending
Enables the blend_src attribute in WGSL.
In the WGSL standard, this corresponds to enable dual_source_blending;.
ClipDistances
Enables the clip_distances variable in WGSL.
In the WGSL standard, this corresponds to enable clip_distances;.
WgpuMeshShader
Enables the wgpu_mesh_shader extension, native only
WgpuRayQuery
Enables the wgpu_ray_query extension, native only.
WgpuRayQueryVertexReturn
Enables the wgpu_ray_query_vertex_return extension, native only.
WgpuRayTracingPipeline
Enables the wgpu_ray_tracing_pipeline extension, native only.
WgpuCooperativeMatrix
Enables the wgpu_cooperative_matrix extension, native only.
DrawIndex
Enables the draw_index builtin. Not currently part of the WGSL spec but probably will be at some point.
PrimitiveIndex
Enables the @builtin(primitive_index) attribute in WGSL.
In the WGSL standard, this corresponds to enable primitive-index;.
Implementations§
Source§impl ImplementedEnableExtension
impl ImplementedEnableExtension
Sourcepub const VARIANTS: &'static [Self]
pub const VARIANTS: &'static [Self]
A slice of all variants of ImplementedEnableExtension.
Sourcepub const fn all() -> &'static [Self]
pub const fn all() -> &'static [Self]
Returns slice of all variants of ImplementedEnableExtension.
Sourcepub const fn capability(self) -> Capabilities
pub const fn capability(self) -> Capabilities
Returns the capability required for this enable extension.
Trait Implementations§
Source§impl Clone for ImplementedEnableExtension
impl Clone for ImplementedEnableExtension
Source§fn clone(&self) -> ImplementedEnableExtension
fn clone(&self) -> ImplementedEnableExtension
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ImplementedEnableExtension
impl Debug for ImplementedEnableExtension
Source§impl From<ImplementedEnableExtension> for EnableExtension
impl From<ImplementedEnableExtension> for EnableExtension
Source§fn from(value: ImplementedEnableExtension) -> Self
fn from(value: ImplementedEnableExtension) -> Self
Source§impl Hash for ImplementedEnableExtension
impl Hash for ImplementedEnableExtension
impl Copy for ImplementedEnableExtension
impl Eq for ImplementedEnableExtension
impl StructuralPartialEq for ImplementedEnableExtension
Auto Trait Implementations§
impl Freeze for ImplementedEnableExtension
impl RefUnwindSafe for ImplementedEnableExtension
impl Send for ImplementedEnableExtension
impl Sync for ImplementedEnableExtension
impl Unpin for ImplementedEnableExtension
impl UnwindSafe for ImplementedEnableExtension
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.