TOpenCLProgram Class

Source: clMtxVec.cs · Assembly: Dew.Math

public class TOpenCLProgram

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.

Properties

NameTypeDescription
CLProgramIntPtrReturns the Open CL program object.
DeviceTOpenCLDeviceReturns 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.
LoadProgram (3)Loads programs stored in SrcFileNames, adds SourceHeader, sets BuildOptions and compiles.