| 98 | } |
| 99 | |
| 100 | void CopyContext::wait(Fence* pFence, uint64_t value) |
| 101 | { |
| 102 | FALCOR_CHECK(pFence, "'fence' must not be null"); |
| 103 | uint64_t waitValue = value == Fence::kAuto ? pFence->getSignaledValue() : value; |
| 104 | gfx::IFence* fences[] = {pFence->getGfxFence()}; |
| 105 | uint64_t waitValues[] = {waitValue}; |
| 106 | FALCOR_GFX_CALL(mpLowLevelData->getGfxCommandQueue()->waitForFenceValuesOnDevice(1, fences, waitValues)); |
| 107 | } |
| 108 | |
| 109 | #if FALCOR_HAS_CUDA |
| 110 | void CopyContext::waitForCuda(cudaStream_t stream) |