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

#include <GA_CEAttribute.h>

Public Member Functions

 GA_CEAttribute ()
 
 GA_CEAttribute (GA_Size entries, GA_StorageClass storage, GA_Precision precision, GA_Size tuplesize, bool isarray, cl::Buffer buffer, cl::Buffer indexbuffer, bool leave_on_gpu=false)
 
virtual ~GA_CEAttribute ()
 
void clearBuffers ()
 
bool isValid () const
 
int64 getDeviceMemoryUsage () const
 
cl::Buffer buffer () const
 
cl::Buffer indexBuffer () const
 
GA_Size entries () const
 
int tupleSize () const
 
GA_StorageClass storage () const
 
GA_Precision precision () const
 
bool isArray () const
 
bool attributeToOCL (const GA_Detail *gdp, GA_AttributeOwner owner, const char *aname, GA_StorageClass storage, int &tuplesize, bool isarray, bool docopy=true)
 
bool attributeToOCL (const GA_Detail *gdp, GA_AttributeOwner owner, const char *aname, GA_StorageClass storage, GA_Precision precision, int &tuplesize, bool isarray, bool docopy=true)
 
bool attributeToOCL (const GA_Attribute *attrib, GA_StorageClass storage, GA_Precision precision, int &tuplesize, bool isarray, bool docopy=true)
 
bool intToOCL (const UT_Array< int64 > &data, GA_StorageClass storage, GA_Precision precision, bool docopy=true)
 
bool intArrayToOCL (const UT_Array< UT_Array< int64 >> &data, GA_StorageClass storage, GA_Precision precision, bool docopy=true)
 
bool packedIntArrayToOCL (const UT_PackedArrayOfArrays< int64 > &data, GA_StorageClass storage, GA_Precision precision, bool docopy=true)
 
bool oclToAttribute (GA_Detail *gdp, GA_AttributeOwner owner, const char *aname)
 
bool oclToAttribute (GA_Attribute *attrib)
 
bool isWriteBackRequired () const
 
void setWriteBackRequired (bool isrequired)
 

Protected Attributes

cl::Buffer myBuffer
 
cl::Buffer myIndexBuffer
 
UT_Array< cl_intmyIndexArray
 
UT_Array< fpreal16myFloat16Array
 
UT_Array< cl_floatmyFloat32Array
 
UT_Array< cl_doublemyFloat64Array
 
UT_Array< cl_shortmyInt16Array
 
UT_Array< cl_intmyInt32Array
 
UT_Array< cl_longmyInt64Array
 
GA_Size myEntries
 
GA_Size myTupleSize
 
GA_StorageClass myStorage
 
GA_Precision myPrecision
 
bool myIsArray
 
bool myWriteBackRequired
 

Detailed Description

Definition at line 21 of file GA_CEAttribute.h.

Constructor & Destructor Documentation

GA_CEAttribute::GA_CEAttribute ( )
GA_CEAttribute::GA_CEAttribute ( GA_Size  entries,
GA_StorageClass  storage,
GA_Precision  precision,
GA_Size  tuplesize,
bool  isarray,
cl::Buffer  buffer,
cl::Buffer  indexbuffer,
bool  leave_on_gpu = false 
)
virtual GA_CEAttribute::~GA_CEAttribute ( )
virtual

Member Function Documentation

bool GA_CEAttribute::attributeToOCL ( const GA_Detail gdp,
GA_AttributeOwner  owner,
const char *  aname,
GA_StorageClass  storage,
int tuplesize,
bool  isarray,
bool  docopy = true 
)
inline

Definition at line 50 of file GA_CEAttribute.h.

bool GA_CEAttribute::attributeToOCL ( const GA_Detail gdp,
GA_AttributeOwner  owner,
const char *  aname,
GA_StorageClass  storage,
GA_Precision  precision,
int tuplesize,
bool  isarray,
bool  docopy = true 
)
inline

Definition at line 61 of file GA_CEAttribute.h.

bool GA_CEAttribute::attributeToOCL ( const GA_Attribute attrib,
GA_StorageClass  storage,
GA_Precision  precision,
int tuplesize,
bool  isarray,
bool  docopy = true 
)
cl::Buffer GA_CEAttribute::buffer ( ) const
inline

Definition at line 42 of file GA_CEAttribute.h.

void GA_CEAttribute::clearBuffers ( )
GA_Size GA_CEAttribute::entries ( ) const
inline

Definition at line 44 of file GA_CEAttribute.h.

int64 GA_CEAttribute::getDeviceMemoryUsage ( ) const
cl::Buffer GA_CEAttribute::indexBuffer ( ) const
inline

Definition at line 43 of file GA_CEAttribute.h.

bool GA_CEAttribute::intArrayToOCL ( const UT_Array< UT_Array< int64 >> &  data,
GA_StorageClass  storage,
GA_Precision  precision,
bool  docopy = true 
)
bool GA_CEAttribute::intToOCL ( const UT_Array< int64 > &  data,
GA_StorageClass  storage,
GA_Precision  precision,
bool  docopy = true 
)
bool GA_CEAttribute::isArray ( ) const
inline

Definition at line 48 of file GA_CEAttribute.h.

bool GA_CEAttribute::isValid ( ) const
inline

Definition at line 35 of file GA_CEAttribute.h.

bool GA_CEAttribute::isWriteBackRequired ( ) const
inline

Definition at line 113 of file GA_CEAttribute.h.

bool GA_CEAttribute::oclToAttribute ( GA_Detail gdp,
GA_AttributeOwner  owner,
const char *  aname 
)
inline

Definition at line 101 of file GA_CEAttribute.h.

bool GA_CEAttribute::oclToAttribute ( GA_Attribute attrib)
bool GA_CEAttribute::packedIntArrayToOCL ( const UT_PackedArrayOfArrays< int64 > &  data,
GA_StorageClass  storage,
GA_Precision  precision,
bool  docopy = true 
)
GA_Precision GA_CEAttribute::precision ( ) const
inline

Definition at line 47 of file GA_CEAttribute.h.

void GA_CEAttribute::setWriteBackRequired ( bool  isrequired)
inline

Definition at line 114 of file GA_CEAttribute.h.

GA_StorageClass GA_CEAttribute::storage ( ) const
inline

Definition at line 46 of file GA_CEAttribute.h.

int GA_CEAttribute::tupleSize ( ) const
inline

Definition at line 45 of file GA_CEAttribute.h.

Member Data Documentation

cl::Buffer GA_CEAttribute::myBuffer
protected

Definition at line 119 of file GA_CEAttribute.h.

GA_Size GA_CEAttribute::myEntries
protected

Definition at line 135 of file GA_CEAttribute.h.

UT_Array<fpreal16> GA_CEAttribute::myFloat16Array
protected

Definition at line 127 of file GA_CEAttribute.h.

UT_Array<cl_float> GA_CEAttribute::myFloat32Array
protected

Definition at line 128 of file GA_CEAttribute.h.

UT_Array<cl_double> GA_CEAttribute::myFloat64Array
protected

Definition at line 129 of file GA_CEAttribute.h.

UT_Array<cl_int> GA_CEAttribute::myIndexArray
protected

Definition at line 123 of file GA_CEAttribute.h.

cl::Buffer GA_CEAttribute::myIndexBuffer
protected

Definition at line 120 of file GA_CEAttribute.h.

UT_Array<cl_short> GA_CEAttribute::myInt16Array
protected

Definition at line 130 of file GA_CEAttribute.h.

UT_Array<cl_int> GA_CEAttribute::myInt32Array
protected

Definition at line 131 of file GA_CEAttribute.h.

UT_Array<cl_long> GA_CEAttribute::myInt64Array
protected

Definition at line 132 of file GA_CEAttribute.h.

bool GA_CEAttribute::myIsArray
protected

Definition at line 139 of file GA_CEAttribute.h.

GA_Precision GA_CEAttribute::myPrecision
protected

Definition at line 138 of file GA_CEAttribute.h.

GA_StorageClass GA_CEAttribute::myStorage
protected

Definition at line 137 of file GA_CEAttribute.h.

GA_Size GA_CEAttribute::myTupleSize
protected

Definition at line 136 of file GA_CEAttribute.h.

bool GA_CEAttribute::myWriteBackRequired
protected

Definition at line 142 of file GA_CEAttribute.h.


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