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
|
|
sRGB images can only be written to if the cl_khr_srgb_image_writes extension is supported.
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