MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / onGuiRender

Method onGuiRender

Source/Samples/HelloDXR/HelloDXR.cpp:89–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void HelloDXR::onGuiRender(Gui* pGui)
90{
91 Gui::Window w(pGui, "Hello DXR Settings", {300, 400}, {10, 80});
92
93 w.checkbox("Ray Trace", mRayTrace);
94 w.checkbox("Use Depth of Field", mUseDOF);
95 if (w.button("Load Scene"))
96 {
97 std::filesystem::path path;
98 if (openFileDialog(Scene::getFileExtensionFilters(), path))
99 {
100 loadScene(path, getTargetFbo().get());
101 }
102 }
103
104 mpScene->renderUI(w);
105}
106
107bool HelloDXR::onKeyEvent(const KeyboardEvent& keyEvent)
108{

Callers

nothing calls this directly

Calls 5

checkboxMethod · 0.80
buttonMethod · 0.80
openFileDialogFunction · 0.50
getMethod · 0.45
renderUIMethod · 0.45

Tested by

no test coverage detected