24#ifndef PXR_USD_USD_UTILS_DEPENDENCIES_H
25#define PXR_USD_USD_UTILS_DEPENDENCIES_H
39#include "pxr/usd/usdUtils/api.h"
46PXR_NAMESPACE_OPEN_SCOPE
62 const std::string& filePath,
63 std::vector<std::string>* subLayers,
64 std::vector<std::string>* references,
65 std::vector<std::string>* payloads);
87 std::vector<SdfLayerRefPtr> *layers,
88 std::vector<std::string> *assets,
89 std::vector<std::string> *unresolvedPaths,
90 const std::function<UsdUtilsProcessingFunc> &processingFunc =
91 std::function<UsdUtilsProcessingFunc>());
98 const std::string& assetPath)>;
110 const SdfLayerHandle& layer,
113PXR_NAMESPACE_CLOSE_SCOPE
Contains an asset path and an optional resolved path.
USDUTILS_API void UsdUtilsModifyAssetPaths(const SdfLayerHandle &layer, const UsdUtilsModifyAssetPathFn &modifyFn)
Helper function that visits every asset path in layer, calls modifyFn and replaces the value with the...
USDUTILS_API bool UsdUtilsComputeAllDependencies(const SdfAssetPath &assetPath, std::vector< SdfLayerRefPtr > *layers, std::vector< std::string > *assets, std::vector< std::string > *unresolvedPaths, const std::function< UsdUtilsProcessingFunc > &processingFunc=std::function< UsdUtilsProcessingFunc >())
Recursively computes all the dependencies of the given asset and populates layers with all the depend...
std::function< std::string(const std::string &assetPath)> UsdUtilsModifyAssetPathFn
Callback that is used to modify asset paths in a layer.
USDUTILS_API void UsdUtilsExtractExternalReferences(const std::string &filePath, std::vector< std::string > *subLayers, std::vector< std::string > *references, std::vector< std::string > *payloads)
Parses the file at filePath, identifying external references, and sorting them into separate type-bas...