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

Method onLoad

Source/Samples/HelloDXR/HelloDXR.cpp:41–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39HelloDXR::~HelloDXR() {}
40
41void HelloDXR::onLoad(RenderContext* pRenderContext)
42{
43 if (getDevice()->isFeatureSupported(Device::SupportedFeatures::Raytracing) == false)
44 {
45 FALCOR_THROW("Device does not support raytracing!");
46 }
47
48 loadScene(kDefaultScene, getTargetFbo().get());
49}
50
51void HelloDXR::onResize(uint32_t width, uint32_t height)
52{

Callers

nothing calls this directly

Calls 3

isFeatureSupportedMethod · 0.80
getDeviceFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected