Vulkan-ValidationLayers
Vulkan-ValidationLayers copied to clipboard
layers: Invalidate dynamic state from previous static state
For https://github.com/KhronosGroup/Vulkan-Docs/issues/2276 (internal spec change https://gitlab.khronos.org/vulkan/vulkan/-/merge_requests/6666)
The following case was never being validated
vkCmdSet()
vkCmdBindPipeline() // static
vkCmdBindPipeline() // dynamic
vkCmdDraw()
This also adds better error messaging to let the developer know that dynamic state was invalidated