#[repr(C)]pub struct DeviceId(/* private fields */);
Expand description
cl_device_id
Implementations§
source§impl DeviceId
impl DeviceId
sourcepub unsafe fn from_raw(ptr: cl_device_id) -> DeviceId
pub unsafe fn from_raw(ptr: cl_device_id) -> DeviceId
Creates a new DeviceId
wrapper from a raw pointer.
sourcepub unsafe fn null() -> DeviceId
pub unsafe fn null() -> DeviceId
Returns an invalid DeviceId
used for initializing data structures
meant to be filled with valid ones.
sourcepub fn as_raw(&self) -> cl_device_id
pub fn as_raw(&self) -> cl_device_id
Returns a pointer.
sourcepub fn version(&self) -> OclCoreResult<OpenclVersion>
pub fn version(&self) -> OclCoreResult<OpenclVersion>
Returns the queried and parsed OpenCL version for this device.
Trait Implementations§
source§impl<'a> ClDeviceIdPtr for &'a DeviceId
impl<'a> ClDeviceIdPtr for &'a DeviceId
fn as_ptr(&self) -> cl_device_id
source§impl ClDeviceIdPtr for DeviceId
impl ClDeviceIdPtr for DeviceId
fn as_ptr(&self) -> cl_device_id
source§impl ClVersions for DeviceId
impl ClVersions for DeviceId
fn device_versions(&self) -> OclCoreResult<Vec<OpenclVersion>>
fn platform_version(&self) -> OclCoreResult<OpenclVersion>
fn verify_device_versions( &self, required_version: [u16; 2] ) -> OclCoreResult<()>
fn verify_platform_version( &self, required_version: [u16; 2] ) -> OclCoreResult<()>
source§impl PartialEq for DeviceId
impl PartialEq for DeviceId
impl Copy for DeviceId
impl Eq for DeviceId
impl Send for DeviceId
impl StructuralEq for DeviceId
impl StructuralPartialEq for DeviceId
impl Sync for DeviceId
Auto Trait Implementations§
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