#[repr(C)]pub struct DeviceProperties {Show 21 fields
pub stype: u32,
pub pnext: *mut c_void,
pub type_: u32,
pub vendor_id: u32,
pub device_id: u32,
pub flags: u32,
pub subdevice_id: u32,
pub core_clock_rate: u32,
pub max_mem_alloc_size: u64,
pub max_hardware_contexts: u32,
pub max_command_queue_priority: u32,
pub num_threads_per_eu: u32,
pub physical_eu_simd_width: u32,
pub num_eus_per_subslice: u32,
pub num_subslices_per_slice: u32,
pub num_slices: u32,
pub timer_resolution: u64,
pub timestamp_valid_bits: u32,
pub kernel_timestamp_valid_bits: u32,
pub uuid: DeviceUuid,
pub name: [c_char; 256],
}Fields§
§stype: u32§pnext: *mut c_void§type_: u32§vendor_id: u32§device_id: u32§flags: u32§subdevice_id: u32§core_clock_rate: u32§max_mem_alloc_size: u64§max_hardware_contexts: u32§max_command_queue_priority: u32§num_threads_per_eu: u32§physical_eu_simd_width: u32§num_eus_per_subslice: u32§num_subslices_per_slice: u32§num_slices: u32§timer_resolution: u64§timestamp_valid_bits: u32§kernel_timestamp_valid_bits: u32§uuid: DeviceUuid§name: [c_char; 256]Trait Implementations§
Auto Trait Implementations§
impl !Send for DeviceProperties
impl !Sync for DeviceProperties
impl Freeze for DeviceProperties
impl RefUnwindSafe for DeviceProperties
impl Unpin for DeviceProperties
impl UnsafeUnpin for DeviceProperties
impl UnwindSafe for DeviceProperties
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> 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