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

Method SDFSVO

Source/Falcor/Scene/SDFs/SparseVoxelOctree/SDFSVO.cpp:73–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 static SharedCache<SDFSVO::SharedData, Device*> sSharedCache;
72
73 SDFSVO::SDFSVO(ref<Device> pDevice)
74 : SDFGrid(pDevice)
75 {
76#if !FALCOR_NVAPI_AVAILABLE
77 FALCOR_THROW("SDFSVO requires NVAPI. See installation instructions in README.");
78#endif
79
80 mpSharedData = sSharedCache.acquire(mpDevice.get(), [this]() { return std::make_shared<SharedData>(mpDevice); });
81 }
82
83 size_t SDFSVO::getSize() const
84 {

Callers

nothing calls this directly

Calls 2

acquireMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected