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

Method CheckDeviceFeatureSupport

Rtxpt/SampleCommon/SampleBaseApp.cpp:370–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370bool 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
388void SampleBaseApp::CreateShaderFactory()
389{

Callers

nothing calls this directly

Calls 1

GetDeviceMethod · 0.45

Tested by

no test coverage detected