forked from wetadigital/USDPluginExamples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rendererPlugin.h
34 lines (26 loc) · 952 Bytes
/
rendererPlugin.h
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
//
// Copyright © 2023 Weta Digital Limited
//
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <pxr/imaging/hd/rendererPlugin.h>
PXR_NAMESPACE_OPEN_SCOPE
/// Plugin entry points (construction, destruction) for the tri render delegate.
class HdTriRendererPlugin final : public HdRendererPlugin
{
public:
HdTriRendererPlugin() = default;
~HdTriRendererPlugin() override = default;
/// Cannot copy.
HdTriRendererPlugin(const HdTriRendererPlugin&) = delete;
HdTriRendererPlugin& operator=(const HdTriRendererPlugin&) = delete;
/// Create a new tri render delegate instance.
virtual HdRenderDelegate* CreateRenderDelegate() override;
/// Delete a tri render delegate instance.
virtual void DeleteRenderDelegate(
HdRenderDelegate* renderDelegate) override;
/// Is this plugin supported?
virtual bool IsSupported(bool gpuEnabled = true) const override;
};
PXR_NAMESPACE_CLOSE_SCOPE