Avokadoen / zig_vulkan

Toying with vulkan and zig
45 stars 2 forks source link

avoid destroying buffers in use by command buffers in imgui pipeline #118

Closed Avokadoen closed 2 years ago

Avokadoen commented 2 years ago

Validation error:

validation layer: Validation Error: [ VUID-vkDestroyBuffer-buffer-00922 ] Object 0: 
handle = 0xca0b160000000085, type = VK_OBJECT_TYPE_BUFFER; | MessageID = 0xe4549c11 | 
Cannot free VkBuffer 0xca0b160000000085[] that is in use by a command buffer. 
The Vulkan spec states: All submitted commands that refer to buffer, either directly or via a VkBufferView, 
must have completed execution (https://vulkan.lunarg.com/doc/view/1.3.204.1/windows/1.3-extensions/vkspec.html#VUID-
vkDestroyBuffer-buffer-00922)
Avokadoen commented 2 years ago

resolved in 148ab7d