| 108 | |
| 109 | #if FALCOR_HAS_CUDA |
| 110 | void CopyContext::waitForCuda(cudaStream_t stream) |
| 111 | { |
| 112 | if (mpDevice->getType() == Device::Type::D3D12) |
| 113 | { |
| 114 | mpLowLevelData->getCudaSemaphore()->waitForCuda(this, stream); |
| 115 | } |
| 116 | else |
| 117 | { |
| 118 | // In the past, we used to wait for all CUDA work to be done. |
| 119 | // Since GFX with Vulkan doesn't support shared fences yet, we do the same here. |
| 120 | cuda_utils::deviceSynchronize(); |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | void CopyContext::waitForFalcor(cudaStream_t stream) |
| 125 | { |