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

#include <stageCache.h>

Static Public Member Functions

static USDUTILS_API UsdStageCacheGet ()
 Returns the singleton stage cache. More...
 
static USDUTILS_API SdfLayerRefPtr GetSessionLayerForVariantSelections (const TfToken &modelName, const std::vector< std::pair< std::string, std::string > > &variantSelections)
 

Detailed Description

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.

Member Function Documentation

static USDUTILS_API UsdStageCache& UsdUtilsStageCache::Get ( )
static

Returns the singleton stage cache.

static USDUTILS_API SdfLayerRefPtr UsdUtilsStageCache::GetSessionLayerForVariantSelections ( const TfToken modelName,
const std::vector< std::pair< std::string, std::string > > &  variantSelections 
)
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.


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