Description

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.

See Also

Document Notes

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 2014-2023 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0