#[repr(C)]pub struct DeviceId(_);
Expand description
cl_device_id
Implementations
sourceimpl 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
sourceimpl<'a> ClDeviceIdPtr for &'a DeviceId
impl<'a> ClDeviceIdPtr for &'a DeviceId
fn as_ptr(&self) -> cl_device_id
sourceimpl ClDeviceIdPtr for DeviceId
impl ClDeviceIdPtr for DeviceId
fn as_ptr(&self) -> cl_device_id
sourceimpl 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<()>
impl Copy for DeviceId
impl Eq for DeviceId
impl Send for DeviceId
impl StructuralEq for DeviceId
impl Sync for DeviceId
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more