7#ifndef PXR_IMAGING_HD_NOTICE_BATCHING_SCENE_INDEX_H
8#define PXR_IMAGING_HD_NOTICE_BATCHING_SCENE_INDEX_H
10#include "pxr/imaging/hd/filteringSceneIndex.h"
12PXR_NAMESPACE_OPEN_SCOPE
14class HdNoticeBatchingSceneIndex;
22 static HdNoticeBatchingSceneIndexRefPtr New(
23 const HdSceneIndexBaseRefPtr &inputScene) {
24 return TfCreateRefPtr(
new HdNoticeBatchingSceneIndex(inputScene));
28 ~HdNoticeBatchingSceneIndex()
override;
37 bool IsBatchingEnabled()
const;
43 void SetBatchingEnabled(
bool enabled);
52 HdNoticeBatchingSceneIndex(
const HdSceneIndexBaseRefPtr &inputScene);
69 virtual ~_BatchEntry();
72 struct _PrimsAddedBatchEntry :
public _BatchEntry
77 struct _PrimsRemovedBatchEntry :
public _BatchEntry
82 struct _PrimsDirtiedBatchEntry :
public _BatchEntry
87 bool _batchingEnabled;
88 std::vector<std::unique_ptr<_BatchEntry>> _batches;
93PXR_NAMESPACE_CLOSE_SCOPE
Abstract interface to scene data.
virtual SdfPathVector GetChildPrimPaths(const SdfPath &primPath) const =0
Returns the paths of all scene index prims located immediately below primPath.
virtual HdSceneIndexPrim GetPrim(const SdfPath &primPath) const =0
Returns a pair of (prim type, datasource) for the object at primPath.
A path value used to locate objects in layers or scenegraphs.
#define TF_DECLARE_REF_PTRS(type)
Define standard ref pointer types.
Small struct representing a 'prim' in the Hydra scene index.