| 52 | } |
| 53 | |
| 54 | void 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 | |
| 65 | uint64_t Fence::getCurrentValue() |
| 66 | { |
no outgoing calls