Struct ocl_core::types::abs::PlatformId
source · #[repr(C)]pub struct PlatformId(_);
Expand description
cl_platform_id
Implementations
sourceimpl PlatformId
impl PlatformId
sourcepub unsafe fn from_raw(ptr: cl_platform_id) -> PlatformId
pub unsafe fn from_raw(ptr: cl_platform_id) -> PlatformId
Creates a new PlatformId
wrapper from a raw pointer.
sourcepub unsafe fn null() -> PlatformId
pub unsafe fn null() -> PlatformId
Returns an invalid PlatformId
used for initializing data structures
meant to be filled with valid ones.
sourcepub fn as_ptr(&self) -> cl_platform_id
pub fn as_ptr(&self) -> cl_platform_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 platform.
Trait Implementations
sourceimpl ClPlatformIdPtr for PlatformId
impl ClPlatformIdPtr for PlatformId
fn as_ptr(&self) -> cl_platform_id
sourceimpl ClVersions for PlatformId
impl ClVersions for PlatformId
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<()>
sourceimpl Clone for PlatformId
impl Clone for PlatformId
sourcefn clone(&self) -> PlatformId
fn clone(&self) -> PlatformId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PlatformId
impl Debug for PlatformId
sourceimpl Hash for PlatformId
impl Hash for PlatformId
sourceimpl PartialEq<PlatformId> for PlatformId
impl PartialEq<PlatformId> for PlatformId
sourcefn eq(&self, other: &PlatformId) -> bool
fn eq(&self, other: &PlatformId) -> bool
impl Copy for PlatformId
impl Eq for PlatformId
impl Send for PlatformId
impl StructuralEq for PlatformId
impl Sync for PlatformId
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