Struct ocl::Platform [] [src]

#[repr(C)]
pub struct Platform(_);

A platform identifier.

Methods

impl Platform
[src]

Returns a list of all platforms avaliable on the host machine.

Creates a new Platform from a PlatformIdCore.

Safety

Not meant to be called unless you know what you're doing.

Use list to get a list of platforms.

Returns a list of Platforms from a list of PlatformIdCores

Returns info about the platform.

Returns the platform profile as a string.

Returns the profile name supported by the implementation. The profile name returned can be one of the following strings:

  • FULL_PROFILE - if the implementation supports the OpenCL specification (functionality defined as part of the core specification and does not require any extensions to be supported).

  • EMBEDDED_PROFILE - if the implementation supports the OpenCL embedded profile. The embedded profile is defined to be a subset for each version of OpenCL.

Returns the platform driver version as a string.

Returns the OpenCL version supported by the implementation. This version string has the following format:

  • OpenCL<major_version.minor_version><platform-specific information>

  • The major_version.minor_version value returned will be '1.2'.

  • TODO: Convert this to new version system returning an OpenclVersion.

Returns the platform name as a string.

Returns the platform vendor as a string.

Returns the list of platform extensions as a string.

Returns a space-separated 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.

Returns a reference to the underlying PlatformIdCore.

Methods from Deref<Target = PlatformIdCore>

Returns a pointer.

Returns the queried and parsed OpenCL version for this platform.

Trait Implementations

impl Clone for Platform
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Platform
[src]

impl Debug for Platform
[src]

Formats the value using the given formatter.

impl ClPlatformIdPtr for Platform
[src]

impl Default for Platform
[src]

Returns the "default value" for a type. Read more

impl From<PlatformIdCore> for Platform
[src]

Performs the conversion.

impl Display for Platform
[src]

Formats the value using the given formatter. Read more

impl Deref for Platform
[src]

The resulting type after dereferencing

The method called to dereference a value

impl DerefMut for Platform
[src]

The method called to mutably dereference a value