12 #ifndef __GA_CEAttribute__
13 #define __GA_CEAttribute__
27 GA_Size tuplesize,
bool isarray,
29 bool leave_on_gpu =
false);
40 int64 getDeviceMemoryUsage()
const;
48 bool isArray()
const {
return myIsArray; }
59 tuplesize, isarray, docopy);
70 if (!gdp)
return false;
76 return attributeToOCL(attrib, storage, precision, tuplesize, isarray, docopy);
95 bool packedIntArrayToOCL(
103 if (!gdp)
return false;
109 return oclToAttribute(attrib);
bool attributeToOCL(const GA_Detail *gdp, GA_AttributeOwner owner, const char *aname, GA_StorageClass storage, int &tuplesize, bool isarray, bool docopy=true)
Definition of a geometry attribute.
getFileOption("OpenEXR:storage") storage
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)
GA_Precision precision() const
exint GA_Size
Defines the bit width for index and offset types in GA.
cl::Buffer buffer() const
UT_Array< cl_short > myInt16Array
GA_StorageClass storage() const
UT_Array< cl_float > myFloat32Array
bool isWriteBackRequired() const
GA_AttributeSet & getAttributes()
UT_Array< cl_double > myFloat64Array
GA_StorageClass myStorage
GLenum GLint GLint * precision
UT_Array< fpreal16 > myFloat16Array
UT_Array< cl_int > myIndexArray
SYS_FORCE_INLINE bool UTisstring(const char *s)
cl::Buffer indexBuffer() const
Container class for all geometry.
UT_Array< cl_int > myInt32Array
bool oclToAttribute(GA_Detail *gdp, GA_AttributeOwner owner, const char *aname)
SYS_FORCE_INLINE const GA_Attribute * findAttribute(GA_AttributeScope scope, const UT_StringRef &name, const GA_AttributeOwner search_order[], int search_order_size) const
UT_Array< cl_long > myInt64Array
void setWriteBackRequired(bool isrequired)