HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sceneIndexPlugin.h
Go to the documentation of this file.
1 //
2 // Copyright 2022 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_IMAGING_HD_GP_SCENE_INDEX_PLUGIN_H
8 #define PXR_IMAGING_HD_GP_SCENE_INDEX_PLUGIN_H
9 
10 #include "pxr/base/tf/envSetting.h"
13 
15 
17 
18 /// \class HdGpSceneIndexPlugin
19 ///
20 /// HdGpSceneIndexPlugin provides HdSceneIndexPluginRegistry access to
21 /// instantiate HdGpGenerativeProceduralResolvingSceneIndex either directly
22 /// or automatically via RegisterSceneIndexForRenderer.
23 ///
25 {
26 public:
29  {
30  // XXX Until we have a better way to declare ordering/dependencies b/w
31  // scene index plugins, allow plugins to run before and after this
32  // plugin (i.e., don't use 0).
33  return 2;
34  }
35 
37 
38 protected:
39  HdSceneIndexBaseRefPtr _AppendSceneIndex(
40  const HdSceneIndexBaseRefPtr &inputScene,
41  const HdContainerDataSourceHandle &inputArgs) override;
42 };
43 
45 
46 #endif
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
HdSceneIndexBaseRefPtr _AppendSceneIndex(const HdSceneIndexBaseRefPtr &inputScene, const HdContainerDataSourceHandle &inputArgs) override
PXR_NAMESPACE_OPEN_SCOPE TfEnvSetting< bool > HDGP_INCLUDE_DEFAULT_RESOLVER
static const HdSceneIndexPluginRegistry::InsertionPhase GetInsertionPhase()