| 368 | } |
| 369 | |
| 370 | bool SampleBaseApp::CheckDeviceFeatureSupport(const donut::app::DeviceCreationParameters& deviceParams) |
| 371 | { |
| 372 | auto device = m_DeviceManager->GetDevice(); |
| 373 | if (!device->queryFeatureSupport(nvrhi::Feature::RayTracingPipeline)) |
| 374 | { |
| 375 | donut::log::fatal("The graphics device does not support Ray Tracing Pipelines"); |
| 376 | return false; |
| 377 | } |
| 378 | |
| 379 | if (!device->queryFeatureSupport(nvrhi::Feature::RayQuery)) |
| 380 | { |
| 381 | donut::log::fatal("The graphics device does not support Ray Queries"); |
| 382 | return false; |
| 383 | } |
| 384 | |
| 385 | return true; |
| 386 | } |
| 387 | |
| 388 | void SampleBaseApp::CreateShaderFactory() |
| 389 | { |