HDK
|
#include <stageCache.h>
Static Public Member Functions | |
static USDUTILS_API UsdStageCache & | Get () |
Returns the singleton stage cache. More... | |
static USDUTILS_API SdfLayerRefPtr | GetSessionLayerForVariantSelections (const TfToken &modelName, const std::vector< std::pair< std::string, std::string > > &variantSelections) |
The UsdUtilsStageCache class provides a simple interface for handling a singleton usd stage cache for use by all USD clients. This way code from any location can make use of the same cache to maximize stage reuse.
Definition at line 51 of file stageCache.h.
|
static |
Returns the singleton stage cache.
|
static |
Given variant selections as a vector of pairs (vector in case order matters to the client), constructs a session layer with overs on the given root modelName with the variant selections, or returns a cached session layer with those opinions.