pub struct BackendCapabilities {
pub name: String,
pub capabilities: Capabilities,
pub max_threads_per_block: u32,
pub max_shared_memory: u32,
pub warp_size: u32,
pub max_registers: u32,
}Expand description
Backend-specific capabilities.
Fields§
§name: StringBackend name.
capabilities: CapabilitiesAvailable capabilities.
max_threads_per_block: u32Maximum threads per block.
Maximum shared memory per block (bytes).
warp_size: u32Warp/wavefront size.
max_registers: u32Maximum registers per thread.
Implementations§
Source§impl BackendCapabilities
impl BackendCapabilities
Sourcepub fn wgpu_baseline() -> Self
pub fn wgpu_baseline() -> Self
Create WebGPU capabilities (baseline).
Sourcepub fn wgpu_with_subgroups() -> Self
pub fn wgpu_with_subgroups() -> Self
Create WebGPU capabilities with subgroups.
Sourcepub fn metal_apple_silicon() -> Self
pub fn metal_apple_silicon() -> Self
Create Metal capabilities (Apple Silicon).
Sourcepub fn supports(&self, required: &Capabilities) -> bool
pub fn supports(&self, required: &Capabilities) -> bool
Check if backend supports required capabilities.
Sourcepub fn unsupported(&self, required: &Capabilities) -> Vec<CapabilityFlag>
pub fn unsupported(&self, required: &Capabilities) -> Vec<CapabilityFlag>
Get unsupported capabilities.
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 moreAuto Trait Implementations§
impl Freeze for BackendCapabilities
impl RefUnwindSafe for BackendCapabilities
impl Send for BackendCapabilities
impl Sync for BackendCapabilities
impl Unpin 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