For 1D, 2D, 3D image objects, 1D and 2D image array objects, the mandated minimum list of image formats that must be supported by all devices (that can be read from or written to by a kernel but not both) that support images is described in the table below (Table 5.8.a):
num_channels |
channel_order |
channel_data_type |
---|---|---|
1 |
CL_R
|
|
1 |
CL_DEPTH
|
|
2 |
CL_RG
|
|
4 |
CL_RGBA
|
|
4 |
CL_BGRA
|
|
4 |
CL_sRGBA
|
|
CL_DEPTH
channel order is supported
only for 2D image and 2D image array objects.
sRGB channel order support is not required for 1D image buffers. Writes to images with sRGB channel orders requires device support of the cl_khr_srgb_image_writes extension.
For 1D, 2D, 3D image objects, 1D and 2D image array objects, the mandated minimum list of image formats that must be supported by all devices (that can be read from and written to by a kernel) that support images is described in the table below (Table 5.8.b):
num_channels |
channel_order |
channel_data_type |
---|---|---|
1 |
CL_R
|
|
4 |
CL_RGBA
|
|
EXTENSION, cl_image_format, cl_khr_3d_image_writes, cl_khr_srgb_image_writes, clGetSupportedImageFormats