Welcome to mirror list, hosted at ThFree Co, Russian Federation.

field.h « hydra « cycles « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 14cd94687618006b02ed2169349249422df724dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* SPDX-License-Identifier: Apache-2.0
 * Copyright 2022 NVIDIA Corporation
 * Copyright 2022 Blender Foundation */

#pragma once

#include "hydra/config.h"
#include "scene/image.h"

#include <pxr/imaging/hd/field.h>

HDCYCLES_NAMESPACE_OPEN_SCOPE

class HdCyclesField final : public PXR_NS::HdField {
 public:
  HdCyclesField(const PXR_NS::SdfPath &bprimId, const PXR_NS::TfToken &typeId);
  ~HdCyclesField() override;

  PXR_NS::HdDirtyBits GetInitialDirtyBitsMask() const override;

  void Sync(PXR_NS::HdSceneDelegate *sceneDelegate,
            PXR_NS::HdRenderParam *renderParam,
            PXR_NS::HdDirtyBits *dirtyBits) override;

  CCL_NS::ImageHandle GetImageHandle() const
  {
    return _handle;
  }

 private:
  CCL_NS::ImageHandle _handle;
};

HDCYCLES_NAMESPACE_CLOSE_SCOPE