Skip to content

Commit a07c620

Browse files
bashbaugalycm
andauthored
update many extensions in the extension spec to use asciidoctor attributes (#873)
* switch cl_khr_command_buffer_mutable_dispatch * switch cl_khr_create_command_queue * switch cl_khr_device_uuid * switch cl_khr_priority_hints * switch cl_khr_throttle_hints * switch cl_khr_d3d10_sharing and cl_khr_d3d11_sharing * switch cl_khr_depth_images * switch cl_khr_dx9_media_sharing * switch cl_khr_extended_versioning * switch cl_khr_fp16 and cl_khr_fp64 * switch cl_khr_icd * switch cl_khr_il_program * switch cl_khr_mipmap_image * switch cl_khr_subgroups * switch cl_khr_integer_dot_product * switch cl_khr_depth_images * switch cl_khr_3d_image_writes * switch cl_khr_command_buffer_mutable_dispatch * switch cl_khr_command_buffer * switch cl_khr_external_semaphore * switch cl_khr_fp16 * a few more cl_khr_fp64 fixes * a few minor fixes to cl_khr_icd and cl_khr_extended_versioning * a few more fixes to cl_khr_il_program * switch cl_khr_image2d_from_buffer * switch cl_khr_initialize_memory * a few more fixes to cl_khr_integer_dot_product * a few more fixes to cl_khr_mipmap_image * switch cl_khr_pci_bus_info * a few more fixes for cl_khr_semaphore * switch cl_khr_spir * switch cl_khr_srgb_image_writes * switch cl_khr_subgroup_named_barrier and cl_khr_suggested_local_work_size * switch cl_khr_terminate_context * Apply suggestions from code review Co-authored-by: Alastair Murray <alastair.murray@codeplay.com> Co-authored-by: Alastair Murray <alastair.murray@codeplay.com>
1 parent 6345e17 commit a07c620

30 files changed

Lines changed: 1596 additions & 1934 deletions

config/rouge/lib/rouge/lexers/opencl.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ class OpenCL < Cpp
155155
cl_command_buffer_properties_khr
156156
cl_ndrange_kernel_command_properties_khr
157157
cl_mutable_command_khr
158+
cl_mutable_command_info_khr
159+
cl_mutable_base_config_khr
158160
cl_dx9_surface_info_khr
159161
cl_motion_estimation_desc_intel
160162
cl_mem_ext_host_ptr
@@ -175,6 +177,15 @@ class OpenCL < Cpp
175177
CL_VERSION_PATCH_KHR
176178
CL_MAKE_VERSION_KHR
177179
cl_device_integer_dot_product_acceleration_properties_khr
180+
cl_command_buffer_khr
181+
cl_mutable_command_khr
182+
cl_command_buffer_structure_type_khr
183+
cl_mutable_base_config_khr
184+
cl_mutable_command_info_khr
185+
cl_mutable_dispatch_arg_khr
186+
cl_mutable_dispatch_config_khr
187+
cl_mutable_dispatch_exec_info_khr
188+
cl_mutable_dispatch_fields_khr
178189
)
179190

180191
# Here are some interesting tokens

ext/cl_khr_3d_image_writes.asciidoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ uint4 _color_)
5050
The appropriate data format conversion to the specified image format is done before writing the color value.
5151
_coord.x_, _coord.y_, and _coord.z_ are considered to be unnormalized coordinates and must be in the range 0 ... image width - 1, 0 ... image height - 1, and 0 ... image depth - 1. +
5252
{blank}
53-
*write_imagef* can only be used with image objects created with _image_channel_data_type_ set to one of the pre-defined packed formats or set to CL_SNORM_INT8, CL_UNORM_INT8, CL_SNORM_INT16, CL_UNORM_INT16, CL_HALF_FLOAT, or CL_FLOAT. Appropriate data format conversion will be done to convert the channel data from a floating-point value to the actual data format in which the channels are stored. +
53+
*write_imagef* can only be used with image objects created with _image_channel_data_type_ set to one of the pre-defined packed formats or set to {CL_SNORM_INT8}, {CL_UNORM_INT8}, {CL_SNORM_INT16}, {CL_UNORM_INT16}, {CL_HALF_FLOAT}, or {CL_FLOAT}. Appropriate data format conversion will be done to convert the channel data from a floating-point value to the actual data format in which the channels are stored. +
5454
{blank}
5555
*write_imagei* can only be used with image objects created with _image_channel_data_type_ set to one of the following values: +
56-
CL_SIGNED_INT8, +
57-
CL_SIGNED_INT16, or +
58-
CL_SIGNED_INT32. +
56+
{CL_SIGNED_INT8}, +
57+
{CL_SIGNED_INT16}, or +
58+
{CL_SIGNED_INT32}. +
5959
{blank}
6060
*write_imageui* can only be used with image objects created with _image_channel_data_type_ set to one of the following values: +
61-
CL_UNSIGNED_INT8, +
62-
CL_UNSIGNED_INT16, or +
63-
CL_UNSIGNED_INT32. +
61+
{CL_UNSIGNED_INT8}, +
62+
{CL_UNSIGNED_INT16}, or +
63+
{CL_UNSIGNED_INT32}. +
6464
{blank}
6565
The behavior of *write_imagef*, *write_imagei*, and *write_imageui* for image objects created with _image_channel_data_type_ values not specified in the description above, or with (_x_, _y_, _z_) coordinate values that are not in the range (0 ... image width - 1, 0 ... image height - 1, 0 ... image depth - 1) respectively, is undefined.
6666

0 commit comments

Comments
 (0)