Skip to content

CLHandleType

CLHandleType

Returns the type of an OpenCL handle as a value of the ENUM_OPENCL_HANDLE_TYPE enumeration.

ENUM_OPENCL_HANDLE_TYPE  CLHandleType(
   int  handle     // Handle of an OpenCL object
   );

Parameters

handle

[in] A handle to an OpenCL object: a context, a kernel or an OpenCL program.

Return Value

The type of the OpenCL handle as a value of the ENUM_OPENCL_HANDLE_TYPE enumeration.

ENUM_OPENCL_HANDLE_TYPE

IdentifierDescription
OPENCL_INVALIDIncorrect handle
OPENCL_CONTEXTA handle of the OpenCL context
OPENCL_PROGRAMA handle of the OpenCL program
OPENCL_KERNELA handle of the OpenCL kernel
OPENCL_BUFFERA handle of the OpenCL buffer
Last updated on