Concrete vertex buffer class for OpenCL subvision.
More...
#include <clVertexBuffer.h>
Concrete vertex buffer class for OpenCL subvision.
CLVertexBuffer implements CLVertexBufferInterface. An instance of this buffer class can be passed to CLComputeController
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.
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.
The documentation for this class was generated from the following file: