7#ifndef PXR_IMAGING_HD_ST_DRAW_TARGET_H
8#define PXR_IMAGING_HD_ST_DRAW_TARGET_H
11#include "pxr/imaging/hdSt/api.h"
12#include "pxr/imaging/hdSt/drawTargetRenderPassState.h"
13#include "pxr/imaging/hd/rprimCollection.h"
14#include "pxr/imaging/hd/sprim.h"
16#include "pxr/usd/sdf/path.h"
22PXR_NAMESPACE_OPEN_SCOPE
25#define HDST_DRAW_TARGET_TOKENS \
37using HdStDrawTargetPtrVector = std::vector<class HdStDrawTarget *>;
61 DirtyDTEnable = 1 << 0,
62 DirtyDTCamera = 1 << 1,
63 DirtyDTResolution = 1 << 2,
64 DirtyDTAovBindings = 1 << 4,
65 DirtyDTDepthPriority = 1 << 6,
66 DirtyDTCollection = 1 << 7,
67 AllDirty = (DirtyDTEnable
79 HdDirtyBits *dirtyBits)
override;
91 bool IsEnabled()
const {
return _enabled; }
94 return &_drawTargetRenderPassState;
104 HdStDrawTargetPtrVector *drawTargets);
130PXR_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 render index is part of the Hydra 1.0 API and is only used for emulation purposes so that HdScene...
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.
void Finalize(HdRenderParam *) override
Finalizes object resources.
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.