Loading...
Searching...
No Matches
dependencyForwardingSceneIndexPlugin.h
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_HDPRMAN_DEPENDENCY_FORWARDING_SCENE_INDEX_PLUGIN_H
8#define PXR_IMAGING_HDPRMAN_DEPENDENCY_FORWARDING_SCENE_INDEX_PLUGIN_H
9
10#include "pxr/pxr.h"
11#if PXR_VERSION >= 2208
12
13#include "pxr/imaging/hd/sceneIndexPlugin.h"
14#include "pxr/imaging/hd/sceneIndexPluginRegistry.h"
15#include "hdPrman/api.h"
16
17PXR_NAMESPACE_OPEN_SCOPE
18
24class HdPrman_DependencyForwardingSceneIndexPlugin : public HdSceneIndexPlugin
25{
26public:
27 HdPrman_DependencyForwardingSceneIndexPlugin();
28
29 static
30 HdSceneIndexPluginRegistry::InsertionPhase
31 GetInsertionPhase()
32 {
33 // Arbitrary "large" number. This plugin should go at the end of
34 // the scene index graph to ensure that any dependencies declared
35 // earlier are honored.
36 return 1000;
37 }
38
39protected:
40 HdSceneIndexBaseRefPtr _AppendSceneIndex(
41 const HdSceneIndexBaseRefPtr &inputScene,
42 const HdContainerDataSourceHandle &inputArgs) override;
43};
44
45PXR_NAMESPACE_CLOSE_SCOPE
46
47#endif // PXR_VERSION >= 2208
48
49#endif // PXR_IMAGING_HDPRMAN_DEPENDENCY_FORWARDING_SCENE_INDEX_PLUGIN_H