OpenCL 1.0 supports 2D image memory objects that can be read or written by kernels. Reads
and writes to the same 2D image memory object are not supported in a kernel. OpenCL 1.0 also
supports reads to 3D image memory objects in kernels. Writes to a 3D image memory object is
not allowed. The cl_khr_3d_image_writes extension implements writes to 3D image memory objects. Reads and writes to the same 3D image memory object are not allowed in a
kernel.
An application that wants to use this extension to write to 3D image memory objects will need to
include the #pragma OPENCL EXTENSION cl_khr_3d_image_writes : enable
directive in the OpenCL program source.
The built-in functions implemented by the cl_khr_3d_image_writes extension are described in the table below.
| Function | Description |
|---|---|
|
|
Write
CL_SIGNED_INT8,
CL_UNSIGNED_INT8,
The behavior of |
Copyright © 2007-2010 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.