cl_khr_3d_image_writes
cl_khr_3d_image_writes
2007-2011 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.
3
cl_khr_3d_image_writes Extension to enable writes to 3D image memory objects.

##

#pragma OPENCL EXTENSION cl_khr_3d_image_writes : enable

## Description

OpenCL 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 also supports reads to 3D image memory objects in kernels. Writes to a 3D image memory object are not supported unless the `cl_khr_3d_image_writes` extension is implemented. 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 3d image write functions are implemented by the `cl_khr_3d_image_writes` extension.

## Specification

OpenCL Specification

## Also see

EXTENSION, cl_image_format, Image Functions

##