Loading...
Searching...
No Matches
energyFilter.h
1//
2// Copyright 2024 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_ENERGY_FILTER_H
8#define EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_ENERGY_FILTER_H
9
10#include "pxr/pxr.h"
11#if PXR_VERSION >= 2308
12
13#include "pxr/imaging/hd/sprim.h"
14#include "pxr/imaging/hd/material.h"
15
16#include "Riley.h"
17
18#if _PRMANAPI_VERSION_MAJOR_ >= 27
19
20PXR_NAMESPACE_OPEN_SCOPE
21
22class HdPrman_RenderParam;
23
24class HdPrman_EnergyFilter : public HdSprim
25{
26public:
27 HdPrman_EnergyFilter(SdfPath const& id);
28
29 void Sync(HdSceneDelegate *sceneDelegate,
30 HdRenderParam *renderParam,
31 HdDirtyBits *dirtyBits) override;
32
33 void Finalize(HdRenderParam *renderParam) override;
34
35 HdDirtyBits GetInitialDirtyBitsMask() const override;
36
37private:
38 void _CreateRmanEnergyFilter(HdSceneDelegate *sceneDelegate,
39 HdPrman_RenderParam *renderParam,
40 SdfPath const& filterPrimPath,
41 HdMaterialNode2 const& energyFilterNode);
42};
43
44PXR_NAMESPACE_CLOSE_SCOPE
45
46#endif // _PRMANAPI_VERSION_MAJOR_ >= 27
47#endif // PXR_VERSION >= 2308
48
49#endif // EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_ENERGY_FILTER_H
The HdRenderParam is an opaque (to core Hydra) handle, to an object that is obtained from the render ...
Adapter class providing data exchange with the client scene graph.
Sprim (state prim) is a base class of managing state for non-drawable scene entity (e....
Definition sprim.h:35
virtual HD_API void Finalize(HdRenderParam *renderParam)
Finalizes object resources.
virtual HdDirtyBits GetInitialDirtyBitsMask() const =0
Returns the minimal set of dirty bits to place in the change tracker for use in the first sync of thi...
virtual void Sync(HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits)=0
Synchronizes state from the delegate to this object.
A path value used to locate objects in layers or scenegraphs.
Definition path.h:281
Describes an instance of a node within a network A node contains a (shader) type identifier,...
Definition material.h:154