Expand description
Raw types
In Blaze, the raw types are used to represent an underlying OpenCL objects plainly. They offer no extra functionality and have the following signature.
ⓘ
#[repr(transparent)]
pub struct RawType (NonNull<c_void>);
Raw types implement Drop
and, since they’re reference counted by OpenCL itself, they also implement Clone
.
Currently, this are the existing raw types:
Name | OpenCL type | OpenCL Version |
---|---|---|
RawPlatform | cl_platform_id | All |
RawDevice | cl_device_id | All |
RawContext | cl_context | All |
RawCommandQueue | cl_command_queue | All |
RawProgram | cl_program | All |
RawKernel | cl_kernel | All |
RawEvent | cl_event | All |
RawMemObject | cl_mem | All |
RawBuffer | cl_mem | All |
RawPipe | cl_mem | 2.0 or higher |
Note that since raw types are transparent wrappers of
NonNull<c_void>
,RawType
andOption<RawType>
have the same size, alongside other optimizations ofNonNull
performed by the compiler.
Re-exports
pub use device::RawDevice;
Modules
Structs
- RawPipe
cl2
- OpenCL platform
- OpenCL program
Enums
Type Definitions
- ErrorTypeDeprecated