| 83 | } |
| 84 | |
| 85 | NativeHandle Fence::getNativeHandle() const |
| 86 | { |
| 87 | gfx::InteropHandle gfxNativeHandle = {}; |
| 88 | FALCOR_GFX_CALL(mGfxFence->getNativeHandle(&gfxNativeHandle)); |
| 89 | #if FALCOR_HAS_D3D12 |
| 90 | if (mpDevice->getType() == Device::Type::D3D12) |
| 91 | return NativeHandle(reinterpret_cast<ID3D12Fence*>(gfxNativeHandle.handleValue)); |
| 92 | #endif |
| 93 | #if FALCOR_HAS_VULKAN |
| 94 | // currently not supported |
| 95 | #endif |
| 96 | return {}; |
| 97 | } |
| 98 | |
| 99 | void Fence::breakStrongReferenceToDevice() |
| 100 | { |
no test coverage detected