Loading...
Searching...
No Matches
rendererCreateArgs.h
1//
2// Copyright 2025 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_IMAGING_HD_RENDERER_CREATE_ARGS_H
8#define PXR_IMAGING_HD_RENDERER_CREATE_ARGS_H
9
10#include "pxr/pxr.h"
11#include "pxr/imaging/hd/api.h"
12
13PXR_NAMESPACE_OPEN_SCOPE
14
15class Hgi;
17
25{
27
28 HD_API
29 explicit HdRendererCreateArgs(
30 const HdRendererCreateArgsSchema &schema);
31
33 bool gpuEnabled { true };
35 Hgi* hgi { nullptr };
36
37 bool operator==(const HdRendererCreateArgs& other) const
38 {
39 return gpuEnabled == other.gpuEnabled && hgi == other.hgi;
40 }
41
42 bool operator!=(const HdRendererCreateArgs& other) const
43 {
44 return !(*this == other);
45 }
46};
47
48PXR_NAMESPACE_CLOSE_SCOPE
49
50#endif
Arguments to HdRendererPlugin::IsSupported and CreateRenderer.
Hydra Graphics Interface.
Definition hgi.h:95
bool gpuEnabled
Whether the GPU is available or not.
Hgi * hgi
An Hgi instance to check backend support against.