Loading...
Searching...
No Matches
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 PXR_IMAGING_PLUGIN_HD_EMBREE_CONFIG_H
25#define PXR_IMAGING_PLUGIN_HD_EMBREE_CONFIG_H
26
27#include "pxr/pxr.h"
29
30PXR_NAMESPACE_OPEN_SCOPE
31
46public:
48 static const HdEmbreeConfig &GetInstance();
49
55
60 unsigned int tileSize;
61
67
73
80
86
87private:
88 // The constructor initializes the config variables with their
89 // default or environment-provided override, and optionally prints
90 // them.
92 ~HdEmbreeConfig() = default;
93
94 HdEmbreeConfig(const HdEmbreeConfig&) = delete;
95 HdEmbreeConfig& operator=(const HdEmbreeConfig&) = delete;
96
97 friend class TfSingleton<HdEmbreeConfig>;
98};
99
100PXR_NAMESPACE_CLOSE_SCOPE
101
102#endif // PXR_IMAGING_PLUGIN_HD_EMBREE_CONFIG_H
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:79
unsigned int ambientOcclusionSamples
How many ambient occlusion rays should we generate per camera ray?
Definition: config.h:66
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
bool jitterCamera
Should the renderpass jitter camera rays for antialiasing?
Definition: config.h:72
unsigned int samplesToConvergence
How many samples do we need before a pixel is considered converged?
Definition: config.h:54
static const HdEmbreeConfig & GetInstance()
Return the configuration singleton.
float cameraLightIntensity
What should the intensity of the camera light be, specified as a percent of <1, 1,...
Definition: config.h:85
Manage a single instance of an object (see.
Definition: singleton.h:122
Manage a single instance of an object.