HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rendererCreateArgs.h
Go to the documentation of this file.
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 
13 
14 class Hgi;
15 
16 ///
17 /// HdRendererCreateArgs contains members indicating the resources available
18 /// when creating a renderer plugin.
19 ///
21 {
22  // Whether the GPU is available or not.
23  bool gpuEnabled { true };
24  // An Hgi instance to check backend support against.
25  Hgi* hgi { nullptr };
26 
27  bool operator==(const HdRendererCreateArgs& other) const
28  {
29  return gpuEnabled == other.gpuEnabled && hgi == other.hgi;
30  }
31 
32  bool operator!=(const HdRendererCreateArgs& other) const
33  {
34  return !(*this == other);
35  }
36 };
37 
39 
40 #endif
#define PXR_NAMESPACE_OPEN_SCOPE
Definition: pxr.h:73
Definition: hgi.h:94
bool operator==(const HdRendererCreateArgs &other) const
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
bool operator!=(const HdRendererCreateArgs &other) const