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_25_0_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RENDER_SETTINGS_H
8#define EXT_RMANPKG_25_0_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RENDER_SETTINGS_H
9
10#include "pxr/pxr.h"
11#include "pxr/imaging/hd/renderSettings.h"
12
13#include "RiTypesHelper.h" // for RtParamList
14
15PXR_NAMESPACE_OPEN_SCOPE
16
17class HdRenderIndex;
18class HdPrman_RenderParam;
19
20class HdPrman_RenderSettings final : public HdRenderSettings
21{
22public:
23 HdPrman_RenderSettings(SdfPath const& id);
24
25 ~HdPrman_RenderSettings() override;
26
32 //
33 bool DriveRenderPass(
34 bool interactive,
35 bool renderPassHasAovBindings) const;
36
37 // Called during render pass execution.
38 // Updates necessary riley state (camera, render view, scene options) and
39 // invokes riley->Render(..).
40 //
41 // NOTE: Current support is limited to "batch" (i.e., non-interactive)
42 // rendering.
43 //
44 bool UpdateAndRender(
45 const HdRenderIndex *renderIndex,
46 bool interactive,
47 HdPrman_RenderParam *param);
48
50 void Finalize(HdRenderParam *renderParam) override;
51
52 void _Sync(HdSceneDelegate *sceneDelegate,
53 HdRenderParam *renderParam,
54 const HdDirtyBits *dirtyBits) override;
55
56private:
57 void _ProcessRenderTerminals(
58 HdSceneDelegate *sceneDelegate,
59 HdPrman_RenderParam *param);
60
61 void _ProcessRenderProducts(HdPrman_RenderParam *param);
62
63private:
64 RtParamList _settingsOptions;
65};
66
67
68PXR_NAMESPACE_CLOSE_SCOPE
69
70#endif // EXT_RMANPKG_25_0_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:104
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