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#include "pxr/imaging/hd/sceneIndexPlugin.h"
12#include "pxr/imaging/hd/sceneIndexPluginRegistry.h"
13#include "hdPrman/api.h"
14
15PXR_NAMESPACE_OPEN_SCOPE
16
23{
24public:
26
27 static
28 HdSceneIndexPluginRegistry::InsertionPhase
29 GetInsertionPhase()
30 {
31 // Arbitrary "large" number. This plugin should go at the end of
32 // the scene index graph to ensure that any dependencies declared
33 // earlier are honored.
34 return 1000;
35 }
36
37protected:
38 HdSceneIndexBaseRefPtr _AppendSceneIndex(
39 const HdSceneIndexBaseRefPtr &inputScene,
40 const HdContainerDataSourceHandle &inputArgs) override;
41};
42
43PXR_NAMESPACE_CLOSE_SCOPE
44
45#endif // PXR_IMAGING_HDPRMAN_DEPENDENCY_FORWARDING_SCENE_INDEX_PLUGIN_H
Plugin adds a dependency forwarding scene index to the Prman render delegate to resolve any dependenc...
HdSceneIndexBaseRefPtr _AppendSceneIndex(const HdSceneIndexBaseRefPtr &inputScene, const HdContainerDataSourceHandle &inputArgs) override
Subclasses implement this to instantiate one or more scene indicies which take the provided scene as ...
A scene index plugin bundles one or more (typically filtering) scene indices together and enables the...