User Tools

Site Tools


api:dk11:delphi:gisopencl.tgis_openclprogram

TGIS_OpenCLProgram class

DK11 for Delphi | GisOpenCL.TGIS_OpenCLProgram | Classes | Constructors | Methods | Properties

Provides the means to execute an OpenCL program.

Available also on: ActiveX.

Syntax

// Delphi
type
  TGIS_OpenCLProgram = class( TGIS_ObjectDisposable )
  end;
// C++ Builder
class PASCALIMPLEMENTATION TGIS_OpenCLProgram : public TGIS_ObjectDisposable
{
};

Inheritance

Constructors

Inherited Overrides Protected
Name Visibility Description
Create public Creates an instance.

Methods

Inherited Overrides Protected
Name Visibility Description
CheckArgument public Checks if an argument of the active kernel has been propertly set.
EnqueueKernel public Enqueues a kernel for execution and sets it as the active kernel.
Execute public Executes the OpenCL program.
LoadFromFile public Loads an OpenCL program from a text file and enqueues a kernel for execution.
LoadFromString public Loads an OpenCL program from string and enqueues a kernel for execution.
ReadBuffer public Reads a buffer argument of the active kernel.
SetArgument(Integer; Integer; Pointer) public Sets a non-buffer argument of the active kernel.
SetArgument(Integer; TGIS_OpenCLMemoryFlags; Integer; Pointer) public Sets a buffer argument of the active kernel.
ShareArgument public Sets a buffer argument of the active kernel with an exiting buffer already set for another kernel.

Properties

Inherited Protected
Name Visibility Description
ArgumentCount public Number of arguments of the active kernel.
CacheBinaries public If True then the binary representation of the OpenCL program is stored in the cache.
ErrorCode public Last error code returned by the OpenCL engine.
GlobalWorkSizes public Global work sizes of the active kernel.
KernelCount public Number of enqueued kernels of the OpenCL program.
KernelIndex public Index of the active kernel.
KernelName public Name of the active kernel.
LocalWorkSizes public Local work sizes of the active kernel; if equal to zero or does not divide global work sizes then work group sizes will be computed automatically.
WorkDimension public Work dimension of the active kernel.

2019/01/25 16:33