pub struct EnabledFeatures {
pub timestamp_query: bool,
pub timestamp_query_inside_encoders: bool,
pub subgroup: bool,
pub subgroup_barrier: bool,
pub shader_f16: bool,
pub pipeline_cache: bool,
pub push_constants: bool,
pub indirect_first_instance: bool,
pub max_workgroup_size: [u32; 3],
pub max_storage_buffer_binding_size: u64,
pub max_subgroup_size: u32,
pub min_subgroup_size: u32,
}Expand description
Snapshot of features that were actually enabled when the cached
device was created. Consumed by WgpuBackend::supports_* methods
so the VyreBackend capability reports are honest - a feature bit
is reported only if it was both advertised by the adapter AND
requested at device creation.
Fields§
§timestamp_query: boolWgpu timestamp queries feature.
timestamp_query_inside_encoders: boolWgpu timestamp writes directly on command encoders.
subgroup: boolWgpu subgroup feature.
subgroup_barrier: boolWgpu subgroup barrier feature.
shader_f16: boolWgpu shader f16 feature.
pipeline_cache: boolWgpu pipeline cache feature.
push_constants: boolWgpu push constants feature.
indirect_first_instance: boolWgpu indirect first instance feature.
max_workgroup_size: [u32; 3]Wgpu adapter max workgroup size limit.
max_storage_buffer_binding_size: u64Wgpu adapter max storage buffer binding size limit.
max_subgroup_size: u32Wgpu adapter max subgroup size.
min_subgroup_size: u32Wgpu adapter minimum subgroup size (I.6). 0 means the
adapter did not report a subgroup size; consumers must treat
subgroup-width-dependent planning as unavailable unless
[crate::capabilities::supports_subgroup_ops] is true.
Trait Implementations§
Source§impl Clone for EnabledFeatures
impl Clone for EnabledFeatures
Source§fn clone(&self) -> EnabledFeatures
fn clone(&self) -> EnabledFeatures
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for EnabledFeatures
Source§impl Debug for EnabledFeatures
impl Debug for EnabledFeatures
Source§impl Default for EnabledFeatures
impl Default for EnabledFeatures
Source§fn default() -> EnabledFeatures
fn default() -> EnabledFeatures
impl Eq for EnabledFeatures
Source§impl PartialEq for EnabledFeatures
impl PartialEq for EnabledFeatures
Source§fn eq(&self, other: &EnabledFeatures) -> bool
fn eq(&self, other: &EnabledFeatures) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EnabledFeatures
Auto Trait Implementations§
impl Freeze for EnabledFeatures
impl RefUnwindSafe for EnabledFeatures
impl Send for EnabledFeatures
impl Sync for EnabledFeatures
impl Unpin for EnabledFeatures
impl UnsafeUnpin for EnabledFeatures
impl UnwindSafe for EnabledFeatures
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.