Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

ImGui vertex buffer and index buffer destruction causes validation layer errors. #4

Open
VZout opened this issue Sep 10, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@VZout
Copy link
Owner

VZout commented Sep 10, 2019

Describe the bug
"Randomly" the validation layer will give the following error:

validation layer: Cannot free VkNonDispatchableHandle 0x39[] 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 (http
s://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkDestroyBuffer-buffer-00922)

This is because the imgui implementation can destroy vertex and index buffers at runtime while they are still being used. These buffers need to be versioned somehow or allocate a massive buffer instead.

@VZout VZout added the bug Something isn't working label Sep 10, 2019
@VZout VZout self-assigned this Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant