Struct blaze_rs::core::RawPlatform
source · #[repr(transparent)]pub struct RawPlatform(_);Expand description
OpenCL platform
Implementations§
source§impl RawPlatform
impl RawPlatform
pub const fn id(&self) -> cl_platform_id
pub const unsafe fn from_id_unchecked(id: cl_platform_id) -> Self
pub const unsafe fn from_id(id: cl_platform_id) -> Option<Self>
sourcepub fn profile(&self) -> Result<String>
pub fn profile(&self) -> Result<String>
Returns the profile name supported by the implementation.
sourcepub fn version(&self) -> Result<String>
pub fn version(&self) -> Result<String>
Returns the OpenCL version supported by the implementation.
sourcepub fn extensions(&self) -> Result<Vec<String>>
pub fn extensions(&self) -> Result<Vec<String>>
Returns a list of extension names (the extension names themselves do not contain any spaces) supported by the platform. Extensions defined here must be supported by all devices associated with this platform.
pub fn host_timer_resolution(&self) -> Result<u64>
Available on crate feature
cl3 only.pub fn all() -> &'static [RawPlatform]
Trait Implementations§
source§impl Clone for RawPlatform
impl Clone for RawPlatform
source§fn clone(&self) -> RawPlatform
fn clone(&self) -> RawPlatform
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for RawPlatform
impl Debug for RawPlatform
source§impl Drop for RawPlatform
Available on crate feature cl1_2 only.
impl Drop for RawPlatform
Available on crate feature
cl1_2 only.source§impl From<RawPlatform> for ContextProperties
impl From<RawPlatform> for ContextProperties
source§fn from(v: RawPlatform) -> Self
fn from(v: RawPlatform) -> Self
Converts to this type from the input type.
source§impl Hash for RawPlatform
impl Hash for RawPlatform
source§impl PartialEq<RawPlatform> for RawPlatform
impl PartialEq<RawPlatform> for RawPlatform
source§fn eq(&self, other: &RawPlatform) -> bool
fn eq(&self, other: &RawPlatform) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for RawPlatform
impl Send for RawPlatform
impl StructuralEq for RawPlatform
impl StructuralPartialEq for RawPlatform
impl Sync for RawPlatform
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