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

OpenCL Refine Context. More...

#include <clComputeContext.h>

Inheritance diagram for CLComputeContext:
NonCopyable< CLComputeContext >

Public Member Functions

virtual ~CLComputeContext ()
 Destructor. More...
 
bool HasVertexStencilTables () const
 Returns true if the Context has a 'vertex' interpolation stencil table. More...
 
bool HasVaryingStencilTables () const
 Returns true if the Context has a 'varying' interpolation stencil table. More...
 
int GetNumControlVertices () const
 Returns the number of control vertices. More...
 
cl_mem GetVertexStencilTablesSizes () const
 Returns the Cuda buffer containing vertex-stencil stencil sizes. More...
 
cl_mem GetVertexStencilTablesOffsets () const
 Returns the Cuda buffer containing vertex-stencil stencil offsets. More...
 
cl_mem GetVertexStencilTablesIndices () const
 Returns the Cuda buffer containing vertex-stencil stencil indices. More...
 
cl_mem GetVertexStencilTablesWeights () const
 Returns the Cuda buffer containing vertex-stencil stencil weights. More...
 
cl_mem GetVaryingStencilTablesSizes () const
 Returns the Cuda buffer containing Varying-stencil stencil sizes. More...
 
cl_mem GetVaryingStencilTablesOffsets () const
 Returns the Cuda buffer containing Varying-stencil stencil offsets. More...
 
cl_mem GetVaryingStencilTablesIndices () const
 Returns the Cuda buffer containing Varying-stencil stencil indices. More...
 
cl_mem GetVaryingStencilTablesWeights () const
 Returns the Cuda buffer containing Varying-stencil stencil weights. More...
 

Static Public Member Functions

static CLComputeContextCreate (cl_context clContext, Far::StencilTables const *vertexStencilTables, Far::StencilTables const *varyingStencilTables=0)
 

Protected Member Functions

 CLComputeContext (Far::StencilTables const *vertexStencilTables, Far::StencilTables const *varyingStencilTables, cl_context clContext)
 
- Protected Member Functions inherited from NonCopyable< CLComputeContext >
 NonCopyable ()
 
 ~NonCopyable ()
 

Detailed Description

OpenCL Refine Context.

The OpenCL-Compute implementation of the Refine module contextual functionality.

Contexts interface the serialized topological data pertaining to the geometric primitives with the capabilities of the selected discrete compute device.

Definition at line 51 of file clComputeContext.h.

Constructor & Destructor Documentation

virtual ~CLComputeContext ( )
virtual

Destructor.

CLComputeContext ( Far::StencilTables const *  vertexStencilTables,
Far::StencilTables const *  varyingStencilTables,
cl_context  clContext 
)
explicitprotected

Member Function Documentation

static CLComputeContext* Create ( cl_context  clContext,
Far::StencilTables const *  vertexStencilTables,
Far::StencilTables const *  varyingStencilTables = 0 
)
static

Creates an CLComputeContext instance

Parameters
clContextAn active OpenCL compute context
vertexStencilTablesThe Far::StencilTables used for vertex interpolation
varyingStencilTablesThe Far::StencilTables used for varying interpolation
int GetNumControlVertices ( ) const
inline

Returns the number of control vertices.

Definition at line 79 of file clComputeContext.h.

cl_mem GetVaryingStencilTablesIndices ( ) const

Returns the Cuda buffer containing Varying-stencil stencil indices.

cl_mem GetVaryingStencilTablesOffsets ( ) const

Returns the Cuda buffer containing Varying-stencil stencil offsets.

cl_mem GetVaryingStencilTablesSizes ( ) const

Returns the Cuda buffer containing Varying-stencil stencil sizes.

cl_mem GetVaryingStencilTablesWeights ( ) const

Returns the Cuda buffer containing Varying-stencil stencil weights.

cl_mem GetVertexStencilTablesIndices ( ) const

Returns the Cuda buffer containing vertex-stencil stencil indices.

cl_mem GetVertexStencilTablesOffsets ( ) const

Returns the Cuda buffer containing vertex-stencil stencil offsets.

cl_mem GetVertexStencilTablesSizes ( ) const

Returns the Cuda buffer containing vertex-stencil stencil sizes.

cl_mem GetVertexStencilTablesWeights ( ) const

Returns the Cuda buffer containing vertex-stencil stencil weights.

bool HasVaryingStencilTables ( ) const

Returns true if the Context has a 'varying' interpolation stencil table.

bool HasVertexStencilTables ( ) const

Returns true if the Context has a 'vertex' interpolation stencil table.


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