Extension to enable writes to 3D image memory objects.

#pragma OPENCL EXTENSION cl_khr_3d_image_writes : enable

Also see

Specification