TOpenCLProgram Class

Header: Dew.Math/clMtxVec.h · Cross-compiler
tObjectTOpenCLProgram

class TOpenCLProgram : public tObject;

Provides method to load Open CL programs either from resource, source or files.

The object also caches compiled binaries for faster load times. It makes sense to use at least two programs when developing applications. One can contain already tested (larger) code and the second one is shorter and rebuilt on every restart.

Constructors

NameDescription
TOpenCLProgram (2)

Destructors

NameDescription
~TOpenCLProgram

Properties

NameTypeDescription
BuildLogtStringList*
CLProgramintPtrReturns the Open CL program object.
DeviceTOpenCLDevice*Returns the Device associated with the program.

Methods

NameDescription
BinaryFileNameReturns the path and name of the compiled binary when the source code comes from a file.
BinaryFileNameResReturns the path and name of the compiled binary when the source code comes from an embedded resource.
BuildProgram
CleanEOL
CreateKernels
CreateProgramWithBinaries
CreateProgramWithSourceCode
LoadCodeFromFile
LoadCodeFromRes
LoadProgram (3)Loads programs stored in SrcFileNames, adds SourceHeader, sets BuildOptions and compiles.
SaveProgramBinaries

Fields

NameTypeDescription
fCLProgramintPtr
fDeviceTOpenCLDevice *
SourceFileLengthsDewArray<intPtr>
SourceFilesDewArray<intPtr>