|
HDK
|
Utility for efficiently building the GT_AttributeList for each owner type. More...
#include <attribListsBuilder.h>
Public Member Functions | |
| void | enablePointAttribs (exint num_points) |
| void | enableVertexAttribs (exint num_vertices) |
| void | enableUniformAttribs (exint num_uniform) |
| void | enableDetailAttribs () |
| Enable collecting constant / detail attributes. More... | |
| bool | add (const GusdPrimvarInfo &info, const GT_DataArrayHandle &data) |
| GT_AttributeListHandle | buildPointAttribs () const |
| GT_AttributeListHandle | buildVertexAttribs () const |
| GT_AttributeListHandle | buildUniformAttribs () const |
| GT_AttributeListHandle | buildDetailAttribs () |
Utility for efficiently building the GT_AttributeList for each owner type.
Definition at line 25 of file attribListsBuilder.h.
| bool GusdAttribListsBuilder::add | ( | const GusdPrimvarInfo & | info, |
| const GT_DataArrayHandle & | data | ||
| ) |
Add an attribute to the appropriate owner's list. (Note, for example, that constant attribs may be promoted down to prim or point attributes for merging multiple prims). This may fail if, for example, the data array doesn't match the required number of entries, or if the owner type is not enabled.
| GT_AttributeListHandle GusdAttribListsBuilder::buildDetailAttribs | ( | ) |
Build the GT_AttributeList for detail attributes. This may return nullptr if there aren't any attributes.
| GT_AttributeListHandle GusdAttribListsBuilder::buildPointAttribs | ( | ) | const |
Build the GT_AttributeList for point attributes. This may return nullptr if there aren't any attributes.
| GT_AttributeListHandle GusdAttribListsBuilder::buildUniformAttribs | ( | ) | const |
Build the GT_AttributeList for uniform attributes. This may return nullptr if there aren't any attributes.
| GT_AttributeListHandle GusdAttribListsBuilder::buildVertexAttribs | ( | ) | const |
Build the GT_AttributeList for vertex attributes. This may return nullptr if there aren't any attributes.
| void GusdAttribListsBuilder::enableDetailAttribs | ( | ) |
Enable collecting constant / detail attributes.
Enable collecting point attributes and configure the required number of entries for the arrays.
Enable collecting uniform attributes and configure the required number of entries for the arrays.
Enable collecting vertex attributes and configure the required number of entries for the arrays.