Description
The following table describes the list of additional data types supported by OpenCL.
| Type | Description |
|---|---|
|
A 2D image. |
|
A 3D image. |
|
A 2D image array. Requires support for OpenCL C 1.2 or newer. |
|
A 1D image. Requires support for OpenCL C 1.2 or newer. |
|
A 1D image created from a buffer object. Requires support for OpenCL C 1.2 or newer. |
|
A 1D image array. Requires support for OpenCL C 1.2 or newer. |
|
A 2D depth image. Requires support for OpenCL C 2.0 or newer, or for
the |
|
A 2D depth image array. Requires support for OpenCL C 2.0 or newer, or for
the |
|
A sampler type. |
|
A device command-queue. This queue can only be used to enqueue commands from kernels executing on the device. Requires support for OpenCL C 2.0, or OpenCL C 3.0 or
newer and the |
|
The N-dimensional range over which a kernel executes. Requires support for OpenCL C 2.0, or OpenCL C 3.0 or
newer and the |
|
A device-side event that identifies a command enqueued to a device command-queue. Requires support for OpenCL C 2.0, or OpenCL C 3.0 or
newer and the |
|
A reservation ID. This opaque type is used to identify the reservation for reading and writing a pipe. Requires support for OpenCL C 2.0, or OpenCL C 3.0 or
newer and the |
|
An event.
This can be used to identify async copies from
|
|
This is a bitfield and can be 0 or a combination of the following values ORed together: These flags are described in detail in the synchronization functions section. |
|
A 2D multi-sample color image. Refer to the Built-in Image Sampler-less Read Functions section for a detailed description of the built-in functions that use this type. Requires support for the
|
|
A 2D multi-sample color image array. Refer to the Built-in Image Sampler-less Read Functions section for a detailed description of the built-in functions that use this type. Requires support for the
|
|
A 2D multi-sample depth image. Refer to the Built-in Image Sampler-less Read Functions section for a detailed description of the built-in functions that use this type. Requires support for the
|
|
A 2D multi-sample depth image array. Refer to the Built-in Image Sampler-less Read Functions section for a detailed description of the built-in functions that use this type. Requires support for the
|
|
The |
The C99 derived types (arrays, structs, unions, functions, and pointers), constructed from the built-in scalar, vector, and other data types are supported, with specified restrictions.
The following tables describe the other built-in data types in OpenCL described in Other Built-in Data Types and the corresponding data type available to the application:
| Type in OpenCL C | API type for application |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
N/A |
|
N/A |
|
N/A |
|
N/A |
|
N/A |
Document Notes
For more information, see the OpenCL C Specification
This page is extracted from the OpenCL C Specification. Fixes and changes should be made to the Specification, not directly.