All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GLSLTransformFeedbackComputeController Class Reference

Compute controller for launching GLSLTransformFeedback transform feedback subdivision kernels. More...

#include <glslTransformFeedbackComputeController.h>

Public Types

typedef
GLSLTransformFeedbackComputeContext 
ComputeContext
 

Public Member Functions

 GLSLTransformFeedbackComputeController ()
 Constructor. More...
 
 ~GLSLTransformFeedbackComputeController ()
 Destructor. More...
 
template<class VERTEX_BUFFER , class VARYING_BUFFER >
void Compute (GLSLTransformFeedbackComputeContext 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 (GLSLTransformFeedbackComputeContext 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, GLuint feedbackTexture)
 
void unbind ()
 
void bindBufferAndProgram (GLuint &texture)
 
void bindContextStencilTables (ComputeContext const *context, bool varying=false)
 
void unbindResources ()
 

Friends

class Far::KernelBatchDispatcher
 

Detailed Description

Compute controller for launching GLSLTransformFeedback transform feedback subdivision kernels.

GLSLTransformFeedbackComputeController is a compute controller class to launch GLSLTransformFeedback 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 54 of file glslTransformFeedbackComputeController.h.

Member Typedef Documentation

Constructor & Destructor Documentation

Member Function Documentation

void ApplyStencilTableKernel ( Far::KernelBatch const &  batch,
ComputeContext const *  context 
) const
protected
void bind ( BUFFER *  buffer,
VertexBufferDescriptor const *  desc,
GLuint  feedbackTexture 
)
inlineprotected

Definition at line 144 of file glslTransformFeedbackComputeController.h.

void bindBufferAndProgram ( GLuint &  texture)
protected
void bindContextStencilTables ( ComputeContext const *  context,
bool  varying = false 
)
protected
void Compute ( GLSLTransformFeedbackComputeContext const *  context,
Far::KernelBatchVector const &  batches,
VERTEX_BUFFER *  vertexBuffer,
VARYING_BUFFER *  varyingBuffer,
VertexBufferDescriptor const *  vertexDesc = NULL,
VertexBufferDescriptor const *  varyingDesc = NULL 
)
inline

Execute subdivision kernels and apply to given vertex buffers.

Parameters
contextThe GLSLTransformFeedbackComputeContext to apply refinement operations to
batchesVector of batches of vertices organized by operative kernel
vertexBufferVertex-interpolated data buffer
vertexDescThe descriptor of vertex elements to be refined. if it's null, all primvars in the vertex buffer will be refined.
varyingBufferVertex-interpolated data buffer
varyingDescThe descriptor of varying elements to be refined. if it's null, all primvars in the vertex buffer will be refined.

Definition at line 86 of file glslTransformFeedbackComputeController.h.

void Compute ( GLSLTransformFeedbackComputeContext const *  context,
Far::KernelBatchVector const &  batches,
VERTEX_BUFFER *  vertexBuffer 
)
inline

Execute subdivision kernels and apply to given vertex buffers.

Parameters
contextThe GLSLTransformFeedbackComputeContext to apply refinement operations to
batchesVector of batches of vertices organized by operative kernel
vertexBufferVertex-interpolated data buffer

Definition at line 126 of file glslTransformFeedbackComputeController.h.

void Synchronize ( )

Waits until all running subdivision kernels finish.

void unbind ( )
inlineprotected

Definition at line 167 of file glslTransformFeedbackComputeController.h.

void unbindResources ( )
protected

Friends And Related Function Documentation

friend class Far::KernelBatchDispatcher
friend

Definition at line 138 of file glslTransformFeedbackComputeController.h.


The documentation for this class was generated from the following file: