Description

For 1D, 1D image from buffer, 2D, 3D image objects, 1D and 2D image array objects, the mandated minimum list of image formats that can be read from and written to by different kernel instances when correctly ordered by event dependencies and that must be supported by all devices that support images is described in the Supported Formats - Kernel Read Or Write table.

Table 1. Minimum list of required image formats: kernel read or write
num_channels channel_order channel_data_type

1

CL_​R

CL_​UNORM_​INT8
CL_​UNORM_​INT16
CL_​SNORM_​INT8
CL_​SNORM_​INT16
CL_​SIGNED_​INT8
CL_​SIGNED_​INT16
CL_​SIGNED_​INT32
CL_​UNSIGNED_​INT8
CL_​UNSIGNED_​INT16
CL_​UNSIGNED_​INT32
CL_​HALF_​FLOAT
CL_​FLOAT

1

CL_​DEPTH9

CL_​UNORM_​INT16
CL_​FLOAT

2

CL_​RG

CL_​UNORM_​INT8
CL_​UNORM_​INT16
CL_​SNORM_​INT8
CL_​SNORM_​INT16
CL_​SIGNED_​INT8
CL_​SIGNED_​INT16
CL_​SIGNED_​INT32
CL_​UNSIGNED_​INT8
CL_​UNSIGNED_​INT16
CL_​UNSIGNED_​INT32
CL_​HALF_​FLOAT
CL_​FLOAT

4

CL_​RGBA

CL_​UNORM_​INT8
CL_​UNORM_​INT16
CL_​SNORM_​INT8
CL_​SNORM_​INT16
CL_​SIGNED_​INT8
CL_​SIGNED_​INT16
CL_​SIGNED_​INT32
CL_​UNSIGNED_​INT8
CL_​UNSIGNED_​INT16
CL_​UNSIGNED_​INT32
CL_​HALF_​FLOAT
CL_​FLOAT

4

CL_​BGRA

CL_​UNORM_​INT8

4

CL_​sRGBA

CL_​UNORM_​INT810

9

CL_​DEPTH channel order is supported only for 2D image and 2D image array objects.

10

Read sRGB channel order support is optional for 1D image buffers. Write sRGB channel order support is optional for all image types.

For 1D, 1D image from buffer, 2D, 3D image objects, 1D and 2D image array objects, the mandated minimum list of image formats that can be read from and written to by the same kernel instance and that must be supported by all devices that support images is described in the Supported Formats - Kernel Read And Write table.

Table 2. Minimum list of required image formats: kernel read and write
num_channels channel_order channel_data_type

1

CL_​R

CL_​UNORM_​INT8
CL_​SIGNED_​INT8
CL_​SIGNED_​INT16
CL_​SIGNED_​INT32
CL_​UNSIGNED_​INT8
CL_​UNSIGNED_​INT16
CL_​UNSIGNED_​INT32
CL_​HALF_​FLOAT
CL_​FLOAT

4

CL_​RGBA

CL_​UNORM_​INT8
CL_​SIGNED_​INT8
CL_​SIGNED_​INT16
CL_​SIGNED_​INT32
CL_​UNSIGNED_​INT8
CL_​UNSIGNED_​INT16
CL_​UNSIGNED_​INT32
CL_​HALF_​FLOAT
CL_​FLOAT

See Also

No cross-references are available

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 (c) 2014-2020 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.