-
Notifications
You must be signed in to change notification settings - Fork 17
/
renderPass.h
39 lines (32 loc) · 1.03 KB
/
renderPass.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// Copyright © 2024 Weta Digital Limited
//
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <pxr/imaging/hd/renderPass.h>
PXR_NAMESPACE_OPEN_SCOPE
/// \class HdTriRenderPass
///
/// Represents a single iteration of a render.
class HdTriRenderPass final : public HdRenderPass
{
public:
HdTriRenderPass(HdRenderIndex* index, const HdRprimCollection& collection);
virtual ~HdTriRenderPass();
protected:
/// Draw the scene with the bound renderpass state.
///
/// \param renderPassState Input parameters (including viewer parameters)
/// for this renderpass. \param renderTags Which rendertags should be drawn
/// this pass.
virtual void _Execute(const HdRenderPassStateSharedPtr& renderPassState,
const TfTokenVector& renderTags) override;
/// Determine whether the sample buffer has enough samples, to be considered
/// final.
virtual bool IsConverged() const override;
private:
// Is converged?
bool _converged = false;
};
PXR_NAMESPACE_CLOSE_SCOPE