MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / SampleBaseApp

Method SampleBaseApp

Rtxpt/SampleCommon/SampleBaseApp.cpp:44–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43
44SampleBaseApp::SampleBaseApp()
45{
46 RegisterDonutCallback(); // Register a custom donut callback to filter errors
47
48 korgi::Init(); // MIDI Input for parameter control
49
50 // Init graphics API
51 nvrhi::GraphicsAPI api = donut::app::GetGraphicsAPIFromCommandLine(__argc, __argv);
52 m_DeviceManager = std::unique_ptr<donut::app::DeviceManager>(donut::app::DeviceManager::Create(api));
53
54 m_DeviceManager->SetFrameTimeUpdateInterval(1.0f);
55}
56
57SampleBaseApp::~SampleBaseApp()
58{

Callers

nothing calls this directly

Calls 1

InitFunction · 0.50

Tested by

no test coverage detected