Application vector types are unions used to create vectors of the above application scalar types. The following application vector types are provided for application convenience.
cl_char<n> cl_uchar<n> cl_short<n> cl_ushort<n> cl_int<n> cl_uint<n> cl_long<n> cl_ulong<n> cl_half<n> cl_float<n> cl_double<n>
n can be 2, 3, 4, 8 or 16.
The application scalar and vector data types are defined in the cl_platform.h header file.
For more information, see the OpenCL Specification
This page is extracted from the OpenCL Specification. Fixes and changes should be made to the Specification, not directly.
Copyright (c) 2014-2020 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.