Loading...
Searching...
No Matches
renderSettings.h
1//
2// Copyright 2022 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RENDER_SETTINGS_H
8#define EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RENDER_SETTINGS_H
9
10#include "pxr/pxr.h"
11#if PXR_VERSION >= 2308
12
13#include "pxr/imaging/hd/renderSettings.h"
14
15#include "RiTypesHelper.h" // for RtParamList
16
17PXR_NAMESPACE_OPEN_SCOPE
18
19class HdRenderIndex;
20class HdPrman_RenderParam;
21
22class HdPrman_RenderSettings final : public HdRenderSettings
23{
24public:
25 HdPrman_RenderSettings(SdfPath const& id);
26
27 ~HdPrman_RenderSettings() override;
28
34 //
35 bool DriveRenderPass(
36 bool interactive,
37 bool renderPassHasAovBindings) const;
38
39 // Called during render pass execution.
40 // Updates necessary riley state (camera, render view, scene options) and
41 // invokes riley->Render(..).
42 //
43 // NOTE: Current support is limited to "batch" (i.e., non-interactive)
44 // rendering.
45 //
46 bool UpdateAndRender(
47 const HdRenderIndex *renderIndex,
48 bool interactive,
49 HdPrman_RenderParam *param);
50
52 void Finalize(HdRenderParam *renderParam) override;
53
54 void _Sync(HdSceneDelegate *sceneDelegate,
55 HdRenderParam *renderParam,
56 const HdDirtyBits *dirtyBits) override;
57
58#if PXR_VERSION <= 2308
59 bool IsValid() const;
60#endif
61private:
62 void _ProcessRenderTerminals(
63 HdSceneDelegate *sceneDelegate,
64 HdPrman_RenderParam *param);
65
66 void _ProcessRenderProducts(HdPrman_RenderParam *param);
67
68private:
69 RtParamList _settingsOptions;
70};
71
72
73PXR_NAMESPACE_CLOSE_SCOPE
74
75#endif // PXR_VERSION >= 2308
76
77#endif // EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_VOLUME_H
virtual HD_API void Finalize(HdRenderParam *renderParam)
Finalizes object resources.
The Hydra render index is a flattened representation of the client scene graph, which may be composed...
Definition: renderIndex.h:105
The HdRenderParam is an opaque (to core Hydra) handle, to an object that is obtained from the render ...
Hydra prim backing render settings scene description.
Adapter class providing data exchange with the client scene graph.
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274