| 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 | { |