#include <spOpenCLDevice.hpp>
List of all members.
Detailed Description
OpenCL device class for GPGPU (General Purpose Computing on Graphics Processing Units).
- Since:
- Version 3.2
Constructor & Destructor Documentation
sp::video::OpenCLDevice::OpenCLDevice |
( |
|
) |
|
sp::video::OpenCLDevice::~OpenCLDevice |
( |
|
) |
|
Member Function Documentation
Creates a new OpenCL memory buffer.
- Parameters:
-
| State,: | Specifies the buffer state or rather if read and/or write access is enabled. |
| BufferSize,: | Specifies the buffer size (in bytes). |
- Returns:
- Pointer to the new OpenCLBuffer object.
Creates a new OpenCL program.
- Parameters:
-
| SourceString,: | Contains the whole OpenCL program source code. |
| CompilationOptions,: | Contains the compilation options. Similar to a C++ compiler option. Here are a few options:
"-D name" -> Predefine 'name' as a macro, with definition 1.
"-cl-single-precision-constant" -> Treat double precision floating-point constant as single precision constant.
"-cl-opt-disable" -> This option disables all optimizations. The default is optimizations are enabled.
For a detailed list take a look at the OpenCL API Docu. |
- Returns:
- Pointer to the new OpenCLProgram object.
void sp::video::OpenCLDevice::deleteBuffer |
( |
OpenCLBuffer * |
Buffer |
) |
|
void sp::video::OpenCLDevice::deleteProgram |
( |
OpenCLProgram * |
Program |
) |
|
Deletes the specified OpenCL program.
io::stringc sp::video::OpenCLDevice::getDescription |
( |
|
) |
const |
io::stringc sp::video::OpenCLDevice::getExtensionString |
( |
|
) |
const |
io::stringc sp::video::OpenCLDevice::getVendor |
( |
|
) |
const |
io::stringc sp::video::OpenCLDevice::getVersion |
( |
|
) |
const |
Returns the version of the present OpenCL hardware implementation.
Friends And Related Function Documentation
The documentation for this class was generated from the following file:
- D:/SoftwareEntwicklung/C++/HLC/Tools/SoftPixelEngine/repository/sources/Framework/OpenCL/spOpenCLDevice.hpp