forked from pezcode/Cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.h
More file actions
60 lines (44 loc) · 1.07 KB
/
Config.h
File metadata and controls
60 lines (44 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#pragma once
#include <bgfx/bgfx.h>
#include "Renderer/Renderer.h"
#include "Cluster.h"
class Config
{
public:
Config();
void readArgv(int argc, char* argv[]);
// * = not exposed to UI
// Log
bool writeLog; // *
const char* logFile; // *
// Renderer
bgfx::RendererType::Enum renderer; // *
Cluster::RenderPath renderPath;
Renderer::TonemappingMode tonemappingMode;
bool multipleScattering;
bool whiteFurnace;
bool profile; // enable bgfx view profiling *
bool vsync; // *
// Scene
const char* sceneFile; // gltf file to load *
bool customScene; // not the standard Sponza scene, don't place debug lights/camera *
int lights;
int maxLights; // *
bool movingLights;
// UI
bool fullscreen;
bool showUI;
bool showConfigWindow;
bool showLog;
bool showStatsOverlay;
struct
{
bool fps;
bool frameTime;
bool profiler;
bool gpuMemory;
} overlays;
bool showBuffers;
// clustered renderer
bool debugVisualization;
};