Compute controller for launching CPU subdivision kernels. More...
#include <cpuComputeController.h>
Public Types | |
typedef CpuComputeContext | ComputeContext |
Public Member Functions | |
CpuComputeController () | |
Constructor. More... | |
~CpuComputeController () | |
Destructor. More... | |
template<class VERTEX_BUFFER , class VARYING_BUFFER > | |
void | Compute (CpuComputeContext const *context, Far::KernelBatchVector const &batches, VERTEX_BUFFER *vertexBuffer, VARYING_BUFFER *varyingBuffer, VertexBufferDescriptor const *vertexDesc=NULL, VertexBufferDescriptor const *varyingDesc=NULL) |
template<class VERTEX_BUFFER > | |
void | Compute (CpuComputeContext const *context, Far::KernelBatchVector const &batches, VERTEX_BUFFER *vertexBuffer) |
void | Synchronize () |
Waits until all running subdivision kernels finish. More... | |
Protected Member Functions | |
void | ApplyStencilTableKernel (Far::KernelBatch const &batch, ComputeContext const *context) const |
template<class VERTEX_BUFFER , class VARYING_BUFFER > | |
void | bind (VERTEX_BUFFER *vertexBuffer, VARYING_BUFFER *varyingBuffer, VertexBufferDescriptor const *vertexDesc, VertexBufferDescriptor const *varyingDesc) |
void | unbind () |
Friends | |
class | Far::KernelBatchDispatcher |
Compute controller for launching CPU subdivision kernels.
CpuComputeController is a compute controller class to launch single threaded CPU subdivision kernels. It requires CpuVertexBufferInterface as arguments of the Refine() function.
The Osd Compute module provides functionality to interpolate primitive variable data according to a subdivision scheme.
Controller entities execute requests from Context instances that they share common interfaces with. Controllers are attached to discrete compute devices and share the devices resources with Context entities.
Definition at line 52 of file cpuComputeController.h.
typedef CpuComputeContext ComputeContext |
Definition at line 54 of file cpuComputeController.h.
Constructor.
~CpuComputeController | ( | ) |
Destructor.
|
protected |
|
inlineprotected |
Definition at line 128 of file cpuComputeController.h.
|
inline |
Execute subdivision kernels and apply to given vertex buffers.
context | The CpuContext to apply refinement operations to |
batches | Vector of batches of vertices organized by operative kernel |
vertexBuffer | Vertex-interpolated data buffer |
vertexDesc | The descriptor of vertex elements to be refined. if it's null, all primvars in the vertex buffer will be refined. |
varyingBuffer | Vertex-interpolated data buffer |
varyingDesc | The descriptor of varying elements to be refined. if it's null, all primvars in the vertex buffer will be refined. |
Definition at line 83 of file cpuComputeController.h.
|
inline |
Execute subdivision kernels and apply to given vertex buffers.
context | The CpuContext to apply refinement operations to |
batches | Vector of batches of vertices organized by operative kernel |
vertexBuffer | Vertex-interpolated data buffer |
Definition at line 109 of file cpuComputeController.h.
void Synchronize | ( | ) |
Waits until all running subdivision kernels finish.
|
inlineprotected |
Definition at line 158 of file cpuComputeController.h.
|
friend |
Definition at line 122 of file cpuComputeController.h.