#[repr(C)]pub struct GPUDeviceInfo {
pub name: *const c_char,
pub vendor: u32,
pub device: u32,
pub device_type: GPUDeviceType,
pub driver: *const c_char,
pub driver_info: *const c_char,
pub backend: GPUComputingBackend,
}Expand description
this struct is used for storing information about each device
Fields§
§name: *const c_charname of the device
vendor: u32vendor ID of the device
device: u32device id of the device
device_type: GPUDeviceTypetype of the device , GPUDeviceType
driver: *const c_chardriver name
driver_info: *const c_chardriver information
backend: GPUComputingBackendcorresponding GPUComputingBackend
Trait Implementations§
Source§impl Clone for GPUDeviceInfo
impl Clone for GPUDeviceInfo
Source§fn clone(&self) -> GPUDeviceInfo
fn clone(&self) -> GPUDeviceInfo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GPUDeviceInfo
impl Debug for GPUDeviceInfo
Auto Trait Implementations§
impl Freeze for GPUDeviceInfo
impl RefUnwindSafe for GPUDeviceInfo
impl !Send for GPUDeviceInfo
impl !Sync for GPUDeviceInfo
impl Unpin for GPUDeviceInfo
impl UnwindSafe for GPUDeviceInfo
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)