Loading...
Searching...
No Matches
discoveryPlugin.h
1//
2// Copyright 2018 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_USD_USD_HYDRA_DISCOVERY_PLUGIN_H
8#define PXR_USD_USD_HYDRA_DISCOVERY_PLUGIN_H
9
10#include "pxr/pxr.h"
11#include "pxr/usd/usdHydra/api.h"
12#include "pxr/base/tf/token.h"
13
14#include "pxr/usd/sdr/declare.h"
17
18PXR_NAMESPACE_OPEN_SCOPE
19
20class UsdHydraDiscoveryPlugin : public SdrDiscoveryPlugin {
21public:
22 UsdHydraDiscoveryPlugin() = default;
23
24 ~UsdHydraDiscoveryPlugin() override = default;
25
26 virtual SdrShaderNodeDiscoveryResultVec DiscoverShaderNodes(const Context &context)
27 override;
28
29 virtual const SdrStringVec& GetSearchURIs() const override;
30};
31
32PXR_NAMESPACE_CLOSE_SCOPE
33
34#endif // PXR_USD_USD_HYDRA_DISCOVERY_PLUGIN_H
Interface for discovery plugins for finding shader nodes.
virtual SDR_API SdrShaderNodeDiscoveryResultVec DiscoverShaderNodes(const Context &)=0
Finds and returns all nodes that the implementing plugin should be aware of.
virtual SDR_API const SdrStringVec & GetSearchURIs() const =0
Gets the URIs that this plugin is searching for nodes in.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...