5.3.2.1. Minimum List of Supported Image Formats
5.3.2.1. 支持的图像格式的最小列表
The tables below describe the required minimum lists of supported image formats. To query all image formats supported by an implementation, call the function clGetSupportedImageFormats.
下表描述了所需的最低支持图像格式列表。要查询实现支持的所有图像格式,请调用函数clGetSupportedImageFormats。
For full profile devices supporting OpenCL 2.0, 2.1, or 2.2, the minimum list of supported image formats for either reading or writing in a kernel is:
对于支持OpenCL 2.0、2.1或2.2的全配置文件设备,在内核中读取或写入所支持的图像格式的最小列表为:
num_channels 通道数 | channel_order 通道顺序 | channel_data_type 通道数据类型 |
---|---|---|
1 | CL_UNORM_INT8 | |
1 | Also supported if the cl_khr_depth_images extension is supported. | |
1 | ||
2 | CL_UNORM_INT8 | |
4 | CL_UNORM_INT8 | |
4 | ||
4 |
For full profile devices supporting other OpenCL versions, such as OpenCL 1.2 or OpenCL 3.0, the minimum list of supported image formats for either reading or writing in a kernel is:
对于支持其他OpenCL版本(如OpenCL 1.2或OpenCL 3.0)的完整配置文件设备,在内核中读取或写入所支持的图像格式的最小列表为:
num_channels 通道数 | channel_order 通道顺序 | channel_data_type 通道数据类型 |
---|---|---|
4 | CL_UNORM_INT8 | |
4 |
For full profile devices that support reading from and writing to the same image object from the same kernel instance (see CL_DEVICE_MAX_READ_WRITE_IMAGE_ARGS), the minimum list of supported image formats for reading and writing in the same kernel instance is:
对于支持从同一内核实例读取和写入同一图像对象的全配置文件设备(请参阅CL_DEVICE_MAX_READ_WRITE_IMAGE_ARGS),在同一内核示例中读取和写入所支持的图像格式的最小列表为:
num_channels 通道数 | channel_order 通道顺序 | channel_data_type 通道数据类型 |
---|---|---|
1 | CL_UNORM_INT8 | |
4 | CL_UNORM_INT8 |