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

Method wait

Source/Falcor/Core/API/Fence.cpp:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void Fence::wait(uint64_t value, uint64_t timeoutNs)
55{
56 uint64_t waitValue = value == kAuto ? mSignaledValue : value;
57 uint64_t currentValue = getCurrentValue();
58 if (currentValue >= waitValue)
59 return;
60 gfx::IFence* fences[] = {mGfxFence};
61 uint64_t waitValues[] = {waitValue};
62 FALCOR_GFX_CALL(mpDevice->getGfxDevice()->waitForFences(1, fences, waitValues, true, timeoutNs));
63}
64
65uint64_t Fence::getCurrentValue()
66{

Callers 15

readPixelDataMethod · 0.45
executeMethod · 0.45
getMinMaxMethod · 0.45
renderPixelDataUIMethod · 0.45
shutdownNGXMethod · 0.45
releaseDLSSMethod · 0.45
getMethod · 0.45
onShutdownMethod · 0.45
createResourcesMethod · 0.45
syncCPUDataMethod · 0.45
optimizeMaterialsMethod · 0.45
loadTextureMethod · 0.45

Calls

no outgoing calls

Tested by 4

runTestFunction · 0.36
internalShutdownMethod · 0.36
CPU_TESTFunction · 0.36
GPU_TESTFunction · 0.36