Loading...
Searching...
No Matches
config.h
1//
2// Copyright 2017 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_PLUGIN_HD_EMBREE_CONFIG_H
8#define PXR_IMAGING_PLUGIN_HD_EMBREE_CONFIG_H
9
10#include "pxr/pxr.h"
12
13PXR_NAMESPACE_OPEN_SCOPE
14
29public:
31 static const HdEmbreeConfig &GetInstance();
32
38
43 unsigned int tileSize;
44
50
56
63
69
70private:
71 // The constructor initializes the config variables with their
72 // default or environment-provided override, and optionally prints
73 // them.
75 ~HdEmbreeConfig() = default;
76
77 HdEmbreeConfig(const HdEmbreeConfig&) = delete;
78 HdEmbreeConfig& operator=(const HdEmbreeConfig&) = delete;
79
80 friend class TfSingleton<HdEmbreeConfig>;
81};
82
83PXR_NAMESPACE_CLOSE_SCOPE
84
85#endif // PXR_IMAGING_PLUGIN_HD_EMBREE_CONFIG_H
This class is a singleton, holding configuration parameters for HdEmbree.
Definition: config.h:28
bool useFaceColors
Should the renderpass use the color primvar, or flat white colors? (Flat white shows off ambient occl...
Definition: config.h:62
unsigned int ambientOcclusionSamples
How many ambient occlusion rays should we generate per camera ray?
Definition: config.h:49
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:43
bool jitterCamera
Should the renderpass jitter camera rays for antialiasing?
Definition: config.h:55
unsigned int samplesToConvergence
How many samples do we need before a pixel is considered converged?
Definition: config.h:37
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:68
Manage a single instance of an object (see.
Definition: singleton.h:105
Manage a single instance of an object.