24#ifndef PXR_IMAGING_HD_ST_DRAW_TARGET_H
25#define PXR_IMAGING_HD_ST_DRAW_TARGET_H
28#include "pxr/imaging/hdSt/api.h"
29#include "pxr/imaging/hdSt/drawTargetRenderPassState.h"
30#include "pxr/imaging/hd/rprimCollection.h"
31#include "pxr/imaging/hd/sprim.h"
33#include "pxr/usd/sdf/path.h"
39PXR_NAMESPACE_OPEN_SCOPE
42#define HDST_DRAW_TARGET_TOKENS \
55using HdStDrawTargetPtrVector = std::vector<class HdStDrawTarget *>;
79 DirtyDTEnable = 1 << 0,
80 DirtyDTCamera = 1 << 1,
81 DirtyDTResolution = 1 << 2,
82 DirtyDTAovBindings = 1 << 4,
83 DirtyDTDepthPriority = 1 << 6,
84 DirtyDTCollection = 1 << 7,
85 AllDirty = (DirtyDTEnable
97 HdDirtyBits *dirtyBits)
override;
109 bool IsEnabled()
const {
return _enabled; }
112 return &_drawTargetRenderPassState;
122 HdStDrawTargetPtrVector *drawTargets);
146PXR_NAMESPACE_CLOSE_SCOPE
Basic type for a vector of 2 int components.
Hydra schema for a camera that pulls the params (see above) during Sync.
The Hydra render index is a flattened representation of the client scene graph, which may be composed...
The HdRenderParam is an opaque (to core Hydra) handle, to an object that is obtained from the render ...
A named, semantic collection of objects.
Adapter class providing data exchange with the client scene graph.
Sprim (state prim) is a base class of managing state for non-drawable scene entity (e....
Represents an render to texture render pass.
HDST_API void Sync(HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) override
Synchronizes state from the delegate to this object.
DirtyBits
Dirty bits for the HdStDrawTarget object.
HDST_API HdDirtyBits GetInitialDirtyBitsMask() const override
Returns the minimal set of dirty bits to place in the change tracker for use in the first sync of thi...
static HDST_API void GetDrawTargets(HdRenderIndex *renderIndex, HdStDrawTargetPtrVector *drawTargets)
returns all HdStDrawTargets in the render index
HDST_API HdRprimCollection const & GetCollection() const
Returns collection of rprims the draw target draws.
const GfVec2i & GetResolution() const
Resolution.
Represents common non-gl context specific render pass state for a draw target.
A path value used to locate objects in layers or scenegraphs.
This file defines some macros that are useful for declaring and using static TfTokens.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.