OpenCL™规范 5.3.2.1. 支持的图像格式的最小列表

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的全配置文件设备,在内核中读取或写入所支持的图像格式的最小列表为:

Table 27. Minimum list of supported image formats for reading or writing (OpenCL 2.0, 2.1, or 2.2)

表27 支持的读写图像格式的最小列表(OpenCL 2.0、2.1或2.2)

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_DEPTH [20]

Also supported if the cl_khr_depth_images extension is supported.


如果支持cl_khr_depth_images扩展名,也支持。

CL_UNORM_INT16
CL_FLOAT

1

CL_DEPTH_STENCIL

CL_UNORM_INT24
CL_FLOAT

See Restrictions on Depth/Stencil Images.

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 [21]

CL_UNORM_INT8

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)的完整配置文件设备,在内核中读取或写入所支持的图像格式的最小列表为:

Table 28. Minimum list of required image formats for reading or writing

表28 读取或写入所需图像格式的最小列表

num_channels

通道数

channel_order

通道顺序

channel_data_type

通道数据类型

4

CL_RGBA

CL_UNORM_INT8
CL_UNORM_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

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),在同一内核示例中读取和写入所支持的图像格式的最小列表为:

Table 29. Minimum list of required image formats for reading and writing

表29 读写所需图像格式的最小列表

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值