Add Chromium-only Blender WebEngine parity work
This commit is contained in:
35
blender-5.2.0/intern/cycles/hydra/field.h
Normal file
35
blender-5.2.0/intern/cycles/hydra/field.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/* SPDX-FileCopyrightText: 2022 NVIDIA Corporation
|
||||
* SPDX-FileCopyrightText: 2022 Blender Foundation
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 */
|
||||
|
||||
#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
|
||||
Reference in New Issue
Block a user