Loading...
Searching...
No Matches
renderSettings.h
1//
2// Copyright 2022 Pixar
3//
4// Licensed under the Apache License, Version 2.0 (the "Apache License")
5// with the following modification; you may not use this file except in
6// compliance with the Apache License and the following modification to it:
7// Section 6. Trademarks. is deleted and replaced with:
8//
9// 6. Trademarks. This License does not grant permission to use the trade
10// names, trademarks, service marks, or product names of the Licensor
11// and its affiliates, except as required to comply with Section 4(c) of
12// the License and to reproduce the content of the NOTICE file.
13//
14// You may obtain a copy of the Apache License at
15//
16// http://www.apache.org/licenses/LICENSE-2.0
17//
18// Unless required by applicable law or agreed to in writing, software
19// distributed under the Apache License with the above modification is
20// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21// KIND, either express or implied. See the Apache License for the specific
22// language governing permissions and limitations under the Apache License.
23//
24#ifndef EXT_RMANPKG_25_0_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RENDER_SETTINGS_H
25#define EXT_RMANPKG_25_0_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RENDER_SETTINGS_H
26
27#include "pxr/pxr.h"
28#include "pxr/imaging/hd/renderSettings.h"
29
30#include "RiTypesHelper.h" // for RtParamList
31
32PXR_NAMESPACE_OPEN_SCOPE
33
34class HdRenderIndex;
35class HdPrman_RenderParam;
36
37class HdPrman_RenderSettings final : public HdRenderSettings
38{
39public:
40 HdPrman_RenderSettings(SdfPath const& id);
41
42 ~HdPrman_RenderSettings() override;
43
49 //
50 bool DriveRenderPass(
51 bool interactive,
52 bool renderPassHasAovBindings) const;
53
54 // Called during render pass execution.
55 // Updates necessary riley state (camera, render view, scene options) and
56 // invokes riley->Render(..).
57 //
58 // NOTE: Current support is limited to "batch" (i.e., non-interactive)
59 // rendering.
60 //
61 bool UpdateAndRender(
62 const HdRenderIndex *renderIndex,
63 bool interactive,
64 HdPrman_RenderParam *param);
65
67 void Finalize(HdRenderParam *renderParam) override;
68
69 void _Sync(HdSceneDelegate *sceneDelegate,
70 HdRenderParam *renderParam,
71 const HdDirtyBits *dirtyBits) override;
72
73private:
74 void _ProcessRenderTerminals(
75 HdSceneDelegate *sceneDelegate,
76 HdPrman_RenderParam *param);
77
78 void _ProcessRenderProducts(HdPrman_RenderParam *param);
79
80private:
81 RtParamList _settingsOptions;
82};
83
84
85PXR_NAMESPACE_CLOSE_SCOPE
86
87#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:121
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:290