diff options
| author | skallweitNV <64953474+skallweitNV@users.noreply.github.com> | 2024-05-08 19:19:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-08 10:19:08 -0700 |
| commit | 93e5b718e8497a0a70eb14dffe120c9ca6d99fd8 (patch) | |
| tree | 61aba93a5d19ba74835129bd22b17bae652ee2de /tools/gfx/vulkan/vk-transient-heap.cpp | |
| parent | 4f2330d059ab5943ddf33bfed37be6a0378d43a8 (diff) | |
[gfx] Cache mutable root shader object in Vulkan (#4119)
* fix comment
* add caching of mutable root shader objects in vulkan
* Fix.
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools/gfx/vulkan/vk-transient-heap.cpp')
| -rw-r--r-- | tools/gfx/vulkan/vk-transient-heap.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gfx/vulkan/vk-transient-heap.cpp b/tools/gfx/vulkan/vk-transient-heap.cpp index 219e66a88..fa4eb718b 100644 --- a/tools/gfx/vulkan/vk-transient-heap.cpp +++ b/tools/gfx/vulkan/vk-transient-heap.cpp @@ -63,6 +63,7 @@ Result TransientResourceHeapImpl::createCommandBuffer(ICommandBuffer** outCmdBuf if (m_commandBufferAllocId < (uint32_t)m_commandBufferPool.getCount()) { auto result = m_commandBufferPool[m_commandBufferAllocId]; + result->m_transientHeap.establishStrongReference(); result->beginCommandBuffer(); m_commandBufferAllocId++; returnComPtr(outCmdBuffer, result); |
