Skip to content

Latest commit

 

History

History
100 lines (66 loc) · 4.01 KB

imageFunctions.adoc

File metadata and controls

100 lines (66 loc) · 4.01 KB

Image Read and Write Functions

Built-in functions to read, write, and query image memory objects. Click an item in the table below for details about that function.

read_imagef for 1D

Do an element lookup in the 1D image object with or without a sampler, returning floating-point values (including optional mipmap support).

Do an element lookup in the 1D image object with or without a sampler, returning unnormalized signed integer and unsigned integer values (including optional mipmap support).

read_imageh for 1D

OPTIONAL function to do an element lookup in the 1D image object with or without a sampler, returning floating-point values. Enabled with cl_khr_fp16.

Write color value to location in the 2D image object (including optional mipmap support). The half type is enabled with cl_khr_fp16.

read_imagef for 2D

Do an element lookup in the 2D image object with or without a sampler, returning floating-point values (including optional mipmap support).

Do an element lookup in the 2D image object with or without a sampler, returning unnormalized signed integer and unsigned integer values (including optional mipmap support).

read_imageh for 2D

OPTIONAL function to do an element lookup in the 2D image object with or without a sampler, returning floating-point values. Enabled with cl_khr_fp16.

Write color value to location in the 2D image object (including optional mipmap support). The half type is enabled with cl_khr_fp16.

read_imagef for 3D

Do an element lookup in the 3D image object with or without a sampler, returning floating-point values (including optional mipmap support).

Do an element lookup in the 3D image object with or without a sampler, returning unnormalized signed integer and unsigned integer values (including optional mipmap support).

read_imageh for 3D

OPTIONAL function to do an element lookup in the 3D image object with or without a sampler, returning floating-point values. Enabled with cl_khr_fp16.

Write color value to location in the 2D image object (including optional mipmap support). The half type is enabled with cl_khr_fp16.

Return the image width in pixels

Return the image height in pixels.

Return the 3D image depth in pixels

Return the image channel data type

Return the image channel order

Return the image dimensions

Return the number of images in an image array

Return the number of mip-levels. Enabled with extension cl_khr_mipmap_image

Return the number of samples in the 2D MSAA image. Enabled with extension cl_khr_gl_msaa_sharing