pub struct BackendCapabilities {
pub tensor_cores: bool,
pub ray_tracing: bool,
pub mesh_shaders: bool,
pub variable_rate_shading: bool,
pub async_compute: bool,
pub p2p_transfer: bool,
pub max_workgroup_size: (u32, u32, u32),
pub max_compute_invocations: u32,
}Expand description
Backend capability flags.
Fields§
§tensor_cores: boolSupports tensor cores.
ray_tracing: boolSupports ray tracing.
mesh_shaders: boolSupports mesh shaders.
variable_rate_shading: boolSupports variable rate shading.
async_compute: boolSupports async compute.
p2p_transfer: boolSupports peer-to-peer transfers.
max_workgroup_size: (u32, u32, u32)Maximum workgroup size.
max_compute_invocations: u32Maximum compute invocations.
Trait Implementations§
Source§impl Clone for BackendCapabilities
impl Clone for BackendCapabilities
Source§fn clone(&self) -> BackendCapabilities
fn clone(&self) -> BackendCapabilities
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 moreSource§impl Debug for BackendCapabilities
impl Debug for BackendCapabilities
Source§impl Default for BackendCapabilities
impl Default for BackendCapabilities
Source§impl PartialEq for BackendCapabilities
impl PartialEq for BackendCapabilities
impl Copy for BackendCapabilities
impl Eq for BackendCapabilities
impl StructuralPartialEq for BackendCapabilities
Auto Trait Implementations§
impl Freeze for BackendCapabilities
impl RefUnwindSafe for BackendCapabilities
impl Send for BackendCapabilities
impl Sync for BackendCapabilities
impl Unpin for BackendCapabilities
impl UnsafeUnpin for BackendCapabilities
impl UnwindSafe for BackendCapabilities
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
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
Compare self to
key and return true if they are equal.