HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_Blend::CachedItemsOCL Class Reference

#include <GU_Blend.h>

Public Member Functions

GU_API CachedItemsOCL ()
 
GU_API void initPerFrameOCL (bool use_opencl, const GA_IndexMap *index_map, DeltaModeOCL dense_mode=DENSE_MODE)
 
void prepareSparseDeltasOCL (const UT_Array< UT_Array< float >> &cpu_deltas, const UT_Array< UT_Array< int >> &page_offsets, const UT_Array< UT_Array< std::pair< GA_PageNum, exint >>> &page_starts, int num_shapes, int tuple_size)
 
void prepareDenseDeltasOCL (const UT_Array< UT_Array< float >> &cpu_deltas, const UT_Array< UT_Array< int >> &page_offsets, const UT_Array< UT_Array< std::pair< GA_PageNum, exint >>> &page_starts, int num_shapes, int tuple_size)
 
void prepareWeightsOCL (const float *cpu_weights, int num_shapes)
 
void setCopyKernelArgOCL (GA_Attribute *data_attrib, int num_tuples)
 
void setSparseKernelArgOCL (GA_Attribute *data_attrib, int num_tuple)
 
void setDenseKernelArgOCL (GA_Attribute *data_attrib, int num_tuples, int num_shapes)
 
void applyCopyKernelOCL (GA_Attribute *data_attrib, int num_tuples)
 
void applySparseDeltaOCL (GA_Attribute *data_attrib, int num_shape, int num_tuple)
 
void applyDenseDeltaOCL (GA_Attribute *data_attrib, int num_shapes, int num_tuples)
 
void setRedoDeltaOCL (bool redo_delta)
 
bool useOCL ()
 
bool switchOCL ()
 
DeltaModeOCL deltaModeOCL ()
 
bool switchDeltaModeOCL ()
 
bool redoDelta ()
 
bool isDeltaBufferEmpty ()
 

Detailed Description

Definition at line 97 of file GU_Blend.h.

Constructor & Destructor Documentation

GU_API GU_Blend::CachedItemsOCL::CachedItemsOCL ( )

Member Function Documentation

void GU_Blend::CachedItemsOCL::applyCopyKernelOCL ( GA_Attribute data_attrib,
int  num_tuples 
)
void GU_Blend::CachedItemsOCL::applyDenseDeltaOCL ( GA_Attribute data_attrib,
int  num_shapes,
int  num_tuples 
)
void GU_Blend::CachedItemsOCL::applySparseDeltaOCL ( GA_Attribute data_attrib,
int  num_shape,
int  num_tuple 
)
DeltaModeOCL GU_Blend::CachedItemsOCL::deltaModeOCL ( )
inline

Definition at line 144 of file GU_Blend.h.

GU_API void GU_Blend::CachedItemsOCL::initPerFrameOCL ( bool  use_opencl,
const GA_IndexMap index_map,
DeltaModeOCL  dense_mode = DENSE_MODE 
)
bool GU_Blend::CachedItemsOCL::isDeltaBufferEmpty ( )
inline

Definition at line 147 of file GU_Blend.h.

void GU_Blend::CachedItemsOCL::prepareDenseDeltasOCL ( const UT_Array< UT_Array< float >> &  cpu_deltas,
const UT_Array< UT_Array< int >> &  page_offsets,
const UT_Array< UT_Array< std::pair< GA_PageNum, exint >>> &  page_starts,
int  num_shapes,
int  tuple_size 
)
void GU_Blend::CachedItemsOCL::prepareSparseDeltasOCL ( const UT_Array< UT_Array< float >> &  cpu_deltas,
const UT_Array< UT_Array< int >> &  page_offsets,
const UT_Array< UT_Array< std::pair< GA_PageNum, exint >>> &  page_starts,
int  num_shapes,
int  tuple_size 
)
void GU_Blend::CachedItemsOCL::prepareWeightsOCL ( const float cpu_weights,
int  num_shapes 
)
bool GU_Blend::CachedItemsOCL::redoDelta ( )
inline

Definition at line 146 of file GU_Blend.h.

void GU_Blend::CachedItemsOCL::setCopyKernelArgOCL ( GA_Attribute data_attrib,
int  num_tuples 
)
void GU_Blend::CachedItemsOCL::setDenseKernelArgOCL ( GA_Attribute data_attrib,
int  num_tuples,
int  num_shapes 
)
void GU_Blend::CachedItemsOCL::setRedoDeltaOCL ( bool  redo_delta)
inline

Definition at line 140 of file GU_Blend.h.

void GU_Blend::CachedItemsOCL::setSparseKernelArgOCL ( GA_Attribute data_attrib,
int  num_tuple 
)
bool GU_Blend::CachedItemsOCL::switchDeltaModeOCL ( )
inline

Definition at line 145 of file GU_Blend.h.

bool GU_Blend::CachedItemsOCL::switchOCL ( )
inline

Definition at line 143 of file GU_Blend.h.

bool GU_Blend::CachedItemsOCL::useOCL ( )
inline

Definition at line 142 of file GU_Blend.h.


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