The data type names described in the table below are reserved and cannot be used
by applications as user-defined type names. The vector data type names defined in
Vector Data Types,
but where n is any value other than 2, 3, 4, 8 and 16, are also reserved.
| Type | Description |
|---|---|
booln
|
A boolean vector. |
halfn
|
A 16-bit float vector. |
quad, quadn
|
A 128-bit floating-point number and vectors. |
|
complex half, |
A complex 16-bit floating-point number, and complex and imaginary 16-bit floating-point vectors. |
|
complex float, |
A complex single precision floating-point number, and complex and imaginary single precision floating-point vectors. |
|
complex double, |
A complex double precision floating-point number, and complex and imaginary double precision floating-point vectors. |
|
complex quad, |
A complex 128-bit floating-point number, and complex and imaginary 128-bit floating-point vectors. |
floatnxm
|
An n x m matrix of single precision floating-point values stored in column-major order. |
doublenxm
|
An n x m matrix of double precision floating-point values stored in column-major order. |
|
long double, |
A floating-point scalar and vector type with at long doublen least as much precision and range as a double and no more precision and range than a quad. |
long long,
long longn
|
A 128-bit signed integer scalar and vector. |
unsigned long long,
ulong long,
ulong longn
|
A 128-bit unsigned integer scalar and vector. |
The C99 derived types (arrays, structs, union, function, and pointers), constructed from the built-in data types described in Scalar Data Types, Vector Data Types, and Other Data Types are also supported.
The type qualifiers const,
restrict, and volatile as
defined by the C99 specification are
supported. These qualifiers cannot be
used with image2d_t
and image3d_t
type. Types other than pointer types
shall not use the restrict qualifier.
Macros and Limits, Scalar Data Types, Vector Data Types, Other Data Types, Abstract Data Types
Copyright © 2007-2010 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.