Compute controller for launching D3D11 Compute subdivision kernels. More...
#include <d3d11ComputeController.h>
Public Types | |
typedef D3D11ComputeContext | ComputeContext |
Public Member Functions | |
D3D11ComputeController (ID3D11DeviceContext *deviceContext) | |
~D3D11ComputeController () | |
Destructor. More... | |
template<class VERTEX_BUFFER , class VARYING_BUFFER > | |
void | Compute (D3D11ComputeContext 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 (D3D11ComputeContext 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 BUFFER > | |
void | bind (BUFFER *buffer, VertexBufferDescriptor const *desc) |
void | unbind () |
void | bindBuffer () |
void | unbindBuffer () |
Friends | |
class | Far::KernelBatchDispatcher |
Compute controller for launching D3D11 Compute subdivision kernels.
D3D11ComputeController is a compute controller class to launch D3D11Compute transfrom feedback subdivision kernels. It requires GLVertexBufferInterface as arguments of Refine function.
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 55 of file d3d11ComputeController.h.
typedef D3D11ComputeContext ComputeContext |
Definition at line 57 of file d3d11ComputeController.h.
D3D11ComputeController | ( | ID3D11DeviceContext * | deviceContext | ) |
Constructor.
deviceContext | a valid instanciated D3D11 device context |
Destructor.
|
protected |
|
inlineprotected |
Definition at line 146 of file d3d11ComputeController.h.
|
protected |
|
inline |
Execute subdivision kernels and apply to given vertex buffers.
context | The D3D11Context 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 88 of file d3d11ComputeController.h.
|
inline |
Execute subdivision kernels and apply to given vertex buffers.
context | The D3D11Context to apply refinement operations to |
batches | Vector of batches of vertices organized by operative kernel |
vertexBuffer | Vertex-interpolated data buffer |
Definition at line 128 of file d3d11ComputeController.h.
void Synchronize | ( | ) |
Waits until all running subdivision kernels finish.
|
inlineprotected |
Definition at line 170 of file d3d11ComputeController.h.
|
protected |
|
friend |
Definition at line 140 of file d3d11ComputeController.h.