Voxel
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
OpenCL::Program Struct Reference

OpenCL program class. More...

#include <opencl_program.h>

Public Member Functions

 Program (std::shared_ptr< State > const &pState, char const *const *const filenames, char const *const options, char const *const logFilename=NULL)
 Constructs and builds an OpenCL program.
cl_program BuiltProgram () const
 Returns built OpenCL program.

Detailed Description

OpenCL program class.

The constructor attempts to create and build a program from a list of source files. If any of the OpenCL calls which perform this task fail, than an OpenCL Exception will be thrown. The compiled program can be accessed via the BuiltProgram accessor function.

Definition at line 53 of file opencl_program.h.

Constructor & Destructor Documentation

OpenCL::Program::Program ( std::shared_ptr< State > const &  pState,
char const *const *const  filenames,
char const *const  options,
char const *const  logFilename = NULL 
)

Constructs and builds an OpenCL program.

Parameters
pStatePointer to the OpenCL State for which to build this program.
filenamesNULL-terminated list of '\0'-terminated strings containing the files to build (each containing OpenCL source).
optionsCompiler options to pass to clBuildProgram.
logFilenameFile to which to write a build log, on failure. If NULL, no log will be written.

Definition at line 43 of file opencl_program.cpp.


The documentation for this struct was generated from the following files: