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 /slang-gfx.h | |
| 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 'slang-gfx.h')
| -rw-r--r-- | slang-gfx.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/slang-gfx.h b/slang-gfx.h index 80327e992..0600d5623 100644 --- a/slang-gfx.h +++ b/slang-gfx.h @@ -913,6 +913,7 @@ public: struct Desc { uint64_t initialValue = 0; + bool isShared = false; }; /// Returns the currently signaled value on the device. @@ -1727,9 +1728,12 @@ public: executeCommandBuffers(1, &commandBuffer, fenceToSignal, newFenceValue); } - virtual SLANG_NO_THROW void SLANG_MCALL wait() = 0; - virtual SLANG_NO_THROW Result SLANG_MCALL getNativeHandle(NativeHandle* outHandle) = 0; + + virtual SLANG_NO_THROW void SLANG_MCALL waitOnHost() = 0; + + /// Queue a device side wait for the given fences. + virtual SLANG_NO_THROW Result SLANG_MCALL waitForFences(uint32_t fenceCount, IFence** fences, uint64_t* waitValues) = 0; }; #define SLANG_UUID_ICommandQueue \ { \ |
