Loading...
Searching...
No Matches
unboundMaterialPruningSceneIndexPlugin.h
1//
2// Copyright 2025 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_ST_UNBOUND_MATERIAL_PRUNING_SCENE_INDEX_PLUGIN_H
8#define PXR_IMAGING_HD_ST_UNBOUND_MATERIAL_PRUNING_SCENE_INDEX_PLUGIN_H
9
10#include "pxr/pxr.h"
11#include "pxr/imaging/hdSt/api.h"
12#include "pxr/imaging/hd/sceneIndexPlugin.h"
13
14PXR_NAMESPACE_OPEN_SCOPE
15
20class HdSt_UnboundMaterialPruningSceneIndexPlugin : public HdSceneIndexPlugin
21{
22public:
23 HdSt_UnboundMaterialPruningSceneIndexPlugin();
24
25protected:
26 HdSceneIndexBaseRefPtr _AppendSceneIndex(
27 const HdSceneIndexBaseRefPtr &inputScene,
28 const HdContainerDataSourceHandle &inputArgs) override;
29
30 bool _IsEnabled(
31 const HdContainerDataSourceHandle &inputArgs) const override;
32};
33
34PXR_NAMESPACE_CLOSE_SCOPE
35
36#endif // PXR_IMAGING_HD_ST_UNBOUND_MATERIAL_PRUNING_SCENE_INDEX_PLUGIN_H
A scene index plugin bundles one or more (typically filtering) scene indices together and enables the...
virtual HD_API bool _IsEnabled(const HdContainerDataSourceHandle &inputArgs) const
Subclasses implement this to indicate whether the plugin is enabled.
virtual HD_API HdSceneIndexBaseRefPtr _AppendSceneIndex(const HdSceneIndexBaseRefPtr &inputScene, const HdContainerDataSourceHandle &inputArgs)
Subclasses implement this to instantiate one or more scene indicies which take the provided scene as ...