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_25_0_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_SAMPLE_FILTER_H
8#define EXT_RMANPKG_25_0_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_SAMPLE_FILTER_H
9
10#include "pxr/pxr.h"
11#include "pxr/imaging/hd/sprim.h"
12#include "pxr/imaging/hd/material.h"
13
14#include "Riley.h"
15
16PXR_NAMESPACE_OPEN_SCOPE
17
18class HdPrman_RenderParam;
19
20class HdPrman_SampleFilter : public HdSprim
21{
22public:
23 HdPrman_SampleFilter(SdfPath const& id);
24
25 void Sync(HdSceneDelegate *sceneDelegate,
26 HdRenderParam *renderParam,
27 HdDirtyBits *dirtyBits) override;
28
29 void Finalize(HdRenderParam *renderParam) override;
30
31 HdDirtyBits GetInitialDirtyBitsMask() const override;
32
33private:
34 void _CreateRmanSampleFilter(HdSceneDelegate *sceneDelegate,
35 HdPrman_RenderParam *renderParam,
36 SdfPath const& filterPrimPath,
37 HdMaterialNode2 const& sampleFilterNode);
38
39};
40
41
42PXR_NAMESPACE_CLOSE_SCOPE
43
44#endif // EXT_RMANPKG_25_0_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:149