8#ifndef PXR_USD_SDR_FILESYSTEM_DISCOVERY_HELPERS_H
9#define PXR_USD_SDR_FILESYSTEM_DISCOVERY_HELPERS_H
14#include "pxr/usd/sdr/api.h"
21PXR_NAMESPACE_OPEN_SCOPE
35 bool (
const TfToken &identifier,
84SdrShaderNodeDiscoveryResultVec
86 const SdrStringVec& searchPaths,
87 const SdrStringVec& allowedExtensions,
88 bool followSymlinks =
true,
99 std::string resolvedUri;
119 const SdrStringVec& searchPaths,
120 const SdrStringVec& allowedExtensions,
121 bool followSymlinks =
true
124PXR_NAMESPACE_CLOSE_SCOPE
Token for efficient comparison, assignment, and hashing of known strings.
Provides utilities that the default filesystem discovery plugin uses.
SDR_API bool SdrFsHelpersSplitShaderIdentifier(const TfToken &identifier, TfToken *family, TfToken *name, SdrVersion *version)
Given a shader's identifier token, computes the corresponding SdrShaderNode's family name,...
std::vector< SdrDiscoveryUri > SdrDiscoveryUriVec
A vector of URI/resolved URI structs.
std::function< bool(const TfToken &identifier, TfToken *family, TfToken *name, SdrVersion *version)> SdrParseIdentifierFn
Type of a function that can be used to parse a discovery result's identifier into its family,...
SDR_API SdrShaderNodeDiscoveryResultVec SdrFsHelpersDiscoverShaderNodes(const SdrStringVec &searchPaths, const SdrStringVec &allowedExtensions, bool followSymlinks=true, const SdrDiscoveryPluginContext *context=nullptr, const SdrParseIdentifierFn &parseIdentifierFn=SdrFsHelpersSplitShaderIdentifier)
Returns a vector of discovery results that have been found while walking the given search paths.
SDR_API SdrDiscoveryUriVec SdrFsHelpersDiscoverFiles(const SdrStringVec &searchPaths, const SdrStringVec &allowedExtensions, bool followSymlinks=true)
Returns a vector of discovered URIs (as both the unresolved URI and the resolved URI) that are found ...
Struct for holding a URI and its resolved URI for a file discovered by SdrFsHelpersDiscoverFiles.