UsdUtilsStageCache Class Reference

The UsdUtilsStageCache class provides a simple interface for handling a singleton usd stage cache for use by all USD clients. More...

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)
 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. More...
 

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

◆ Get()

static USDUTILS_API UsdStageCache& Get ( )
static

Returns the singleton stage cache.

◆ GetSessionLayerForVariantSelections()

static USDUTILS_API SdfLayerRefPtr 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: