| 42 | |
| 43 | |
| 44 | SampleBaseApp::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 | |
| 57 | SampleBaseApp::~SampleBaseApp() |
| 58 | { |