7 #ifndef PXR_USD_USD_UTILS_FLATTEN_LAYER_STACK_H 8 #define PXR_USD_USD_UTILS_FLATTEN_LAYER_STACK_H 16 #include "pxr/usd/usdUtils/api.h" 20 PXR_NAMESPACE_OPEN_SCOPE
51 const std::string& tag = std::string());
61 const SdfLayerHandle& sourceLayer,
62 const std::string& assetPath)>;
95 const std::string& tag = std::string());
106 const SdfLayerHandle& sourceLayer,
107 const std::string& assetPath);
110 PXR_NAMESPACE_CLOSE_SCOPE
A scene description container that can combine with other such containers to form simple component as...
USDUTILS_API SdfLayerRefPtr UsdUtilsFlattenLayerStack(const UsdStagePtr &stage, const std::string &tag=std::string())
Flatten the root layer stack of the given stage into a single layer with the given optional tag.
USDUTILS_API std::string UsdUtilsFlattenLayerStackResolveAssetPath(const SdfLayerHandle &sourceLayer, const std::string &assetPath)
The default UsdUtilsResolvePathFn used by UsdUtilsFlattenLayerStack.
std::function< std::string(const SdfLayerHandle &sourceLayer, const std::string &assetPath)> UsdUtilsResolveAssetPathFn
Callback function for overloaded version of UsdUtilsFlattenLayerStack.