pub struct DeviceConfiguration {
pub optimal_allocation_size: usize,
pub workgroup_size: (u32, u32, u32),
pub memory_alignment: usize,
pub max_concurrent_operations: u32,
pub backend_specific: HashMap<String, CapabilityValue>,
}Expand description
Device configuration for optimal performance
Fields§
§optimal_allocation_size: usizeOptimal memory allocation size
workgroup_size: (u32, u32, u32)Recommended workgroup/thread block size
memory_alignment: usizeMemory alignment requirements
max_concurrent_operations: u32Concurrent operation limits
backend_specific: HashMap<String, CapabilityValue>Backend-specific configuration
Trait Implementations§
Source§impl Clone for DeviceConfiguration
impl Clone for DeviceConfiguration
Source§fn clone(&self) -> DeviceConfiguration
fn clone(&self) -> DeviceConfiguration
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 DeviceConfiguration
impl RefUnwindSafe for DeviceConfiguration
impl Send for DeviceConfiguration
impl Sync for DeviceConfiguration
impl Unpin for DeviceConfiguration
impl UnsafeUnpin for DeviceConfiguration
impl UnwindSafe for DeviceConfiguration
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more