Blender V5.3
hydra/light.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
10#include <pxr/imaging/hd/dataSource.h>
11#include <pxr/imaging/hd/light.h>
12
14
15class HdCyclesLight final : public PXR_NS::HdLight {
16 public:
17 HdCyclesLight(const PXR_NS::SdfPath &sprimId, const PXR_NS::TfToken &lightType);
18 ~HdCyclesLight() 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 void Finalize(PXR_NS::HdRenderParam *renderParam) override;
27
28 private:
29 void Initialize(PXR_NS::HdRenderParam *renderParam);
30
31 void PopulateShaderGraph(const PXR_NS::HdContainerDataSourceHandle &lightContainer);
32
33 CCL_NS::Object *_object = nullptr;
34 CCL_NS::Light *_light = nullptr;
35 PXR_NS::TfToken _lightType;
36};
37
#define final(a, b, c)
Definition BLI_hash_c.hh:21
void Finalize(PXR_NS::HdRenderParam *renderParam) override
void Sync(PXR_NS::HdSceneDelegate *sceneDelegate, PXR_NS::HdRenderParam *renderParam, PXR_NS::HdDirtyBits *dirtyBits) override
~HdCyclesLight() override
HdCyclesLight(const PXR_NS::SdfPath &sprimId, const PXR_NS::TfToken &lightType)
PXR_NS::HdDirtyBits GetInitialDirtyBitsMask() const override
#define HDCYCLES_NAMESPACE_CLOSE_SCOPE