Concrete vertex buffer class for OpenCL subvision.
More...
#include <clVertexBuffer.h>
|
| ~CLVertexBuffer () |
| Destructor. More...
|
|
void | UpdateData (const float *src, int startVertex, int numVertices, cl_command_queue clQueue) |
|
template<typename DEVICE_CONTEXT > |
void | UpdateData (const float *src, int startVertex, int numVertices, DEVICE_CONTEXT context) |
|
int | GetNumElements () const |
| Returns how many elements defined in this vertex buffer. More...
|
|
int | GetNumVertices () const |
| Returns how many vertices allocated in this vertex buffer. More...
|
|
cl_mem | BindCLBuffer (cl_command_queue queue) |
| Returns the CL memory object. More...
|
|
|
static CLVertexBuffer * | Create (int numElements, int numVertices, cl_context clContext) |
| Creator. Returns NULL if error. More...
|
|
template<typename DEVICE_CONTEXT > |
static CLVertexBuffer * | Create (int numElements, int numVertices, DEVICE_CONTEXT context) |
|
Concrete vertex buffer class for OpenCL subvision.
CLVertexBuffer implements CLVertexBufferInterface. An instance of this buffer class can be passed to CLEvaluator
Definition at line 42 of file clVertexBuffer.h.
CLVertexBuffer |
( |
int |
numElements, |
|
|
int |
numVertices, |
|
|
cl_context |
clContext |
|
) |
| |
|
protected |
bool allocate |
( |
cl_context |
clContext | ) |
|
|
protected |
Allocates CL memory for this buffer. Returns true if success.
cl_mem BindCLBuffer |
( |
cl_command_queue |
queue | ) |
|
Returns the CL memory object.
static CLVertexBuffer* Create |
( |
int |
numElements, |
|
|
int |
numVertices, |
|
|
cl_context |
clContext |
|
) |
| |
|
static |
Creator. Returns NULL if error.
static CLVertexBuffer* Create |
( |
int |
numElements, |
|
|
int |
numVertices, |
|
|
DEVICE_CONTEXT |
context |
|
) |
| |
|
inlinestatic |
int GetNumElements |
( |
| ) |
const |
Returns how many elements defined in this vertex buffer.
int GetNumVertices |
( |
| ) |
const |
Returns how many vertices allocated in this vertex buffer.
void UpdateData |
( |
const float * |
src, |
|
|
int |
startVertex, |
|
|
int |
numVertices, |
|
|
cl_command_queue |
clQueue |
|
) |
| |
This method is meant to be used in client code in order to provide coarse vertices data to Osd.
void UpdateData |
( |
const float * |
src, |
|
|
int |
startVertex, |
|
|
int |
numVertices, |
|
|
DEVICE_CONTEXT |
context |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: