Blender  V3.3
field.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: Apache-2.0
2  * Copyright 2022 NVIDIA Corporation
3  * Copyright 2022 Blender Foundation */
4 
5 #pragma once
6 
7 #include "hydra/config.h"
8 #include "scene/image.h"
9 
10 #include <pxr/imaging/hd/field.h>
11 
13 
14 class HdCyclesField final : public PXR_NS::HdField {
15  public:
16  HdCyclesField(const PXR_NS::SdfPath &bprimId, const PXR_NS::TfToken &typeId);
17  ~HdCyclesField() override;
18 
19  PXR_NS::HdDirtyBits GetInitialDirtyBitsMask() const override;
20 
21  void Sync(PXR_NS::HdSceneDelegate *sceneDelegate,
22  PXR_NS::HdRenderParam *renderParam,
23  PXR_NS::HdDirtyBits *dirtyBits) override;
24 
25  CCL_NS::ImageHandle GetImageHandle() const
26  {
27  return _handle;
28  }
29 
30  private:
31  CCL_NS::ImageHandle _handle;
32 };
33 
#define final(a, b, c)
Definition: BLI_hash.h:21
~HdCyclesField() override
Definition: field.cpp:45
void Sync(PXR_NS::HdSceneDelegate *sceneDelegate, PXR_NS::HdRenderParam *renderParam, PXR_NS::HdDirtyBits *dirtyBits) override
Definition: field.cpp:54
HdCyclesField(const PXR_NS::SdfPath &bprimId, const PXR_NS::TfToken &typeId)
Definition: field.cpp:41
CCL_NS::ImageHandle GetImageHandle() const
Definition: field.h:25
PXR_NS::HdDirtyBits GetInitialDirtyBitsMask() const override
Definition: field.cpp:49
#define HDCYCLES_NAMESPACE_CLOSE_SCOPE
Definition: hydra/config.h:17