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

Method LoadScene

Rtxpt/Sample.cpp:447–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445}
446
447bool Sample::LoadScene(std::shared_ptr<vfs::IFileSystem> fs, const std::filesystem::path& sceneFileName)
448{
449 m_scene = std::shared_ptr<ExtendedScene>( new ExtendedScene(GetDevice(), *m_shaderFactory, fs, m_TextureCache, m_DescriptorTable, std::make_shared<ExtendedSceneTypeFactory>() ) );
450 m_progressLoading.Set(10);
451 if (m_scene->Load(sceneFileName))
452 return true;
453 m_scene = nullptr;
454 return false;
455}
456
457void Sample::UpdateCameraFromScene( const std::shared_ptr<donut::engine::PerspectiveCamera> & sceneCamera )
458{

Callers

nothing calls this directly

Calls 2

SetMethod · 0.80
LoadMethod · 0.45

Tested by

no test coverage detected