Loading...
Searching...
No Matches
sampleFilter.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_SAMPLE_FILTER_H
8#define EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_SAMPLE_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
18PXR_NAMESPACE_OPEN_SCOPE
19
20class HdPrman_RenderParam;
21
22class HdPrman_SampleFilter : public HdSprim
23{
24public:
25 HdPrman_SampleFilter(SdfPath const& id);
26
27 void Sync(HdSceneDelegate *sceneDelegate,
28 HdRenderParam *renderParam,
29 HdDirtyBits *dirtyBits) override;
30
31 void Finalize(HdRenderParam *renderParam) override;
32
33 HdDirtyBits GetInitialDirtyBitsMask() const override;
34
35private:
36 void _CreateRmanSampleFilter(HdSceneDelegate *sceneDelegate,
37 HdPrman_RenderParam *renderParam,
38 SdfPath const& filterPrimPath,
39 HdMaterialNode2 const& sampleFilterNode);
40
41};
42
43
44PXR_NAMESPACE_CLOSE_SCOPE
45
46#endif // PXR_VERSION >= 2308
47
48#endif // EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_SAMPLE_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:274
Describes an instance of a node within a network A node contains a (shader) type identifier,...
Definition: material.h:154