pub struct BackendCapabilities {Show 14 fields
pub name: String,
pub supports_cuda: bool,
pub supports_opencl: bool,
pub supports_vulkan: bool,
pub supports_webgpu: bool,
pub max_threads: u32,
pub max_threads_per_block: u32,
pub max_blocks_per_grid: u32,
pub max_shared_memory: usize,
pub supports_dynamic_parallelism: bool,
pub supports_unified_memory: bool,
pub max_grid_dim: [u32; 3],
pub max_block_dim: [u32; 3],
pub warp_size: u32,
}
Expand description
Backend capabilities
Fields§
§name: String
§supports_cuda: bool
§supports_opencl: bool
§supports_vulkan: bool
§supports_webgpu: bool
§max_threads: u32
§max_threads_per_block: u32
§max_blocks_per_grid: u32
§supports_dynamic_parallelism: bool
§supports_unified_memory: bool
§max_grid_dim: [u32; 3]
§max_block_dim: [u32; 3]
§warp_size: u32
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