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