diff options
| author | Yong He <yonghe@outlook.com> | 2021-12-07 13:45:49 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-07 13:45:49 -0800 |
| commit | 90d8af888b40c83b33f9f0c037bd2ab8c19a35f4 (patch) | |
| tree | 21ada472ea0d768352f46da7db64f9dc449d1209 /tools/gfx/debug-layer.cpp | |
| parent | 646eecc6af878ea7682c814c15b4e838c3231ee3 (diff) | |
gfx: D3D12 and VK Fence implementation. (#2048)
* gfx: D3D12 and VK Fence implementation.
* Fix.
* Update project files.
* Revert project file changes.
* Remove project files
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/debug-layer.cpp')
| -rw-r--r-- | tools/gfx/debug-layer.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tools/gfx/debug-layer.cpp b/tools/gfx/debug-layer.cpp index 831566c7c..470b63599 100644 --- a/tools/gfx/debug-layer.cpp +++ b/tools/gfx/debug-layer.cpp @@ -1467,10 +1467,26 @@ void DebugCommandQueue::executeCommandBuffers(uint32_t count, ICommandBuffer* co baseObject->executeCommandBuffers(count, innerCommandBuffers.getBuffer(), getInnerObj(fence), valueToSignal); } -void DebugCommandQueue::wait() { baseObject->wait(); } +void DebugCommandQueue::waitOnHost() +{ + SLANG_GFX_API_FUNC; + baseObject->waitOnHost(); +} + +Result DebugCommandQueue::waitForFences(uint32_t fenceCount, IFence** fences, uint64_t* waitValues) +{ + SLANG_GFX_API_FUNC; + List<IFence*> innerFences; + for (uint32_t i = 0; i < fenceCount; ++i) + { + innerFences.add(getInnerObj(fences[i])); + } + return baseObject->waitForFences(fenceCount, innerFences.getBuffer(), waitValues); +} Result DebugCommandQueue::getNativeHandle(NativeHandle* outHandle) { + SLANG_GFX_API_FUNC; return baseObject->getNativeHandle(outHandle); } |
