24 #ifndef PXR_IMAGING_HDX_DRAW_TARGET_TASK_H
25 #define PXR_IMAGING_HDX_DRAW_TARGET_TASK_H
41 = std::shared_ptr<class HdStRenderPassState>;
43 = std::shared_ptr<class HdStSimpleLightingShader>;
78 struct _RenderPassInfo;
80 using _RenderPassInfoVector = std::vector<_RenderPassInfo>;
82 static _RenderPassInfoVector _ComputeRenderPassInfos(
85 static _CameraInfo _ComputeCameraInfo(
88 static void _UpdateLightingContext(
89 const _CameraInfo &cameraInfo,
90 GlfSimpleLightingContextConstRefPtr
const &srcContext,
91 GlfSimpleLightingContextRefPtr
const &ctx);
92 void _UpdateRenderPassState(
94 const _CameraInfo &cameraInfo,
98 static void _UpdateRenderPass(
99 _RenderPassInfo *info);
101 unsigned _currentDrawTargetSetVersion;
102 _RenderPassInfoVector _renderPassesInfo;
111 bool _enableLighting;
112 float _alphaThreshold;
115 bool _depthBiasUseDefault;
116 bool _depthBiasEnable;
117 float _depthBiasConstantFactor;
118 float _depthBiasSlopeFactor;
126 bool _enableSampleAlphaToCoverage;
129 HdxDrawTargetTask() =
delete;
130 HdxDrawTargetTask(
const HdxDrawTargetTask &) =
delete;
131 HdxDrawTargetTask &
operator =(
const HdxDrawTargetTask &) =
delete;
191 #endif // PXR_IMAGING_HDX_DRAW_TARGET_TASK_H
HDX_API void Execute(HdTaskContext *ctx) override
Execute render pass task.
HDX_API ~HdxDrawTargetTask() override
TF_DECLARE_REF_PTRS(GlfSimpleLightingContext)
std::shared_ptr< class HdStRenderPassState > HdStRenderPassStateSharedPtr
float depthBiasSlopeFactor
float depthBiasConstantFactor
HDX_API const TfTokenVector & GetRenderTags() const override
Collect Render Tags used by the task.
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
std::vector< TfToken > TfTokenVector
Convenience types.
bool enableAlphaToCoverage
std::unordered_map< TfToken, VtValue, TfToken::HashFunctor > HdTaskContext
std::shared_ptr< class HdStSimpleLightingShader > HdStSimpleLightingShaderSharedPtr
HDX_API std::ostream & operator<<(std::ostream &out, const HdxDrawTargetTaskParams &pv)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
LeafData & operator=(const LeafData &)=delete
HDX_API void Sync(HdSceneDelegate *delegate, HdTaskContext *ctx, HdDirtyBits *dirtyBits) override
Sync the render pass resources.
#define PXR_NAMESPACE_CLOSE_SCOPE
HdxDrawTargetTaskParams()
HdCompareFunction depthFunc
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
HDX_API void Prepare(HdTaskContext *ctx, HdRenderIndex *renderIndex) override
Prepare the tasks resources.