7#ifndef PXR_IMAGING_HD_NOTICE_BATCHING_SCENE_INDEX_H
8#define PXR_IMAGING_HD_NOTICE_BATCHING_SCENE_INDEX_H
11#include "pxr/imaging/hd/api.h"
12#include "pxr/imaging/hd/filteringSceneIndex.h"
14PXR_NAMESPACE_OPEN_SCOPE
16class HdNoticeBatchingSceneIndex;
24 static HdNoticeBatchingSceneIndexRefPtr New(
25 const HdSceneIndexBaseRefPtr &inputScene) {
26 return TfCreateRefPtr(
new HdNoticeBatchingSceneIndex(inputScene));
30 ~HdNoticeBatchingSceneIndex()
override;
40 bool IsBatchingEnabled()
const;
47 void SetBatchingEnabled(
bool enabled);
57 HdNoticeBatchingSceneIndex(
const HdSceneIndexBaseRefPtr &inputScene);
78 virtual ~_BatchEntry();
81 struct _PrimsAddedBatchEntry :
public _BatchEntry
86 struct _PrimsRemovedBatchEntry :
public _BatchEntry
91 struct _PrimsDirtiedBatchEntry :
public _BatchEntry
96 bool _batchingEnabled;
97 std::vector<std::unique_ptr<_BatchEntry>> _batches;
102PXR_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).
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.