All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
config.h
1 //
2 // Copyright 2017 Pixar
3 //
4 // Licensed under the Apache License, Version 2.0 (the "Apache License")
5 // with the following modification; you may not use this file except in
6 // compliance with the Apache License and the following modification to it:
7 // Section 6. Trademarks. is deleted and replaced with:
8 //
9 // 6. Trademarks. This License does not grant permission to use the trade
10 // names, trademarks, service marks, or product names of the Licensor
11 // and its affiliates, except as required to comply with Section 4(c) of
12 // the License and to reproduce the content of the NOTICE file.
13 //
14 // You may obtain a copy of the Apache License at
15 //
16 // http://www.apache.org/licenses/LICENSE-2.0
17 //
18 // Unless required by applicable law or agreed to in writing, software
19 // distributed under the Apache License with the above modification is
20 // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21 // KIND, either express or implied. See the Apache License for the specific
22 // language governing permissions and limitations under the Apache License.
23 //
24 #ifndef HDEMBREE_CONFIG_H
25 #define HDEMBREE_CONFIG_H
26 
27 #include "pxr/pxr.h"
28 #include "pxr/base/tf/singleton.h"
29 
30 PXR_NAMESPACE_OPEN_SCOPE
31 
46 public:
48  static const HdEmbreeConfig &GetInstance();
49 
54  unsigned int samplesToConvergence;
55 
60  unsigned int tileSize;
61 
67 
72  unsigned int subdivisionCache;
73 
79 
86 
92 
93 private:
94  // The constructor initializes the config variables with their
95  // default or environment-provided override, and optionally prints
96  // them.
98  ~HdEmbreeConfig() = default;
99 
100  HdEmbreeConfig(const HdEmbreeConfig&) = delete;
101  HdEmbreeConfig& operator=(const HdEmbreeConfig&) = delete;
102 
103  friend class TfSingleton<HdEmbreeConfig>;
104 };
105 
106 PXR_NAMESPACE_CLOSE_SCOPE
107 
108 #endif // HDEMBREE_CONFIG_H
Manage a single instance of an object (see.
Definition: singleton.h:122
static const HdEmbreeConfig & GetInstance()
Return the configuration singleton.
unsigned int tileSize
How many pixels are in an atomic unit of parallel work? A work item is a square of size [tileSize x t...
Definition: config.h:60
float cameraLightIntensity
What should the intensity of the camera light be, specified as a percent of &lt;1, 1, 1&gt;.
Definition: config.h:91
unsigned int ambientOcclusionSamples
How many ambient occlusion rays should we generate per camera ray?
Definition: config.h:66
bool jitterCamera
Should the renderpass jitter camera rays for antialiasing?
Definition: config.h:78
This class is a singleton, holding configuration parameters for HdEmbree.
Definition: config.h:45
bool useFaceColors
Should the renderpass use the color primvar, or flat white colors? (Flat white shows off ambient occl...
Definition: config.h:85
unsigned int samplesToConvergence
How many samples do we need before a pixel is considered converged?
Definition: config.h:54
unsigned int subdivisionCache
How many bytes should we allocate for the embree subdivision surface cache?
Definition: config.h:72