pub struct DeviceCapabilities {
pub compute: bool,
pub timestamp_query: bool,
pub pipeline_statistics: bool,
pub texture_compression_bc: bool,
pub texture_compression_etc2: bool,
pub texture_compression_astc: bool,
pub indirect_first_instance: bool,
pub shader_f16: bool,
pub push_constants: bool,
pub multi_draw_indirect: bool,
pub multi_draw_indirect_count: bool,
}Expand description
Device capabilities and features
Fields§
§compute: boolSupports compute shaders
timestamp_query: boolSupports timestamp queries
pipeline_statistics: boolSupports pipeline statistics
texture_compression_bc: boolSupports texture compression BC
texture_compression_etc2: boolSupports texture compression ETC2
texture_compression_astc: boolSupports texture compression ASTC
indirect_first_instance: boolSupports indirect first instance
shader_f16: boolSupports shader f16
push_constants: boolSupports push constants
multi_draw_indirect: boolSupports multi draw indirect
multi_draw_indirect_count: boolSupports multi draw indirect count
Implementations§
Source§impl DeviceCapabilities
impl DeviceCapabilities
Sourcepub fn from_adapter(adapter: &Adapter) -> Self
pub fn from_adapter(adapter: &Adapter) -> Self
Detect capabilities from adapter
Sourcepub fn supports_required_features(&self) -> bool
pub fn supports_required_features(&self) -> bool
Check if device supports all required features
Sourcepub fn supports_optimal_features(&self) -> bool
pub fn supports_optimal_features(&self) -> bool
Check if device supports optimal features
Trait Implementations§
Source§impl Clone for DeviceCapabilities
impl Clone for DeviceCapabilities
Source§fn clone(&self) -> DeviceCapabilities
fn clone(&self) -> DeviceCapabilities
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DeviceCapabilities
impl RefUnwindSafe for DeviceCapabilities
impl Send for DeviceCapabilities
impl Sync for DeviceCapabilities
impl Unpin for DeviceCapabilities
impl UnsafeUnpin for DeviceCapabilities
impl UnwindSafe for DeviceCapabilities
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
Mutably borrows from an owned value. Read more