Vulkan: Fix case where uniforms could be overwritten

If a draw caused a command buffer submission, the current uniform storage
should not be used for the new command buffer.
This commit is contained in:
Stenzek
2016-11-30 22:31:41 +10:00
parent 4c11735bd5
commit 3adeacb78d
3 changed files with 19 additions and 13 deletions

View File

@ -76,6 +76,9 @@ public:
// now be in a different pool for the new command buffer.
void InvalidateDescriptorSets();
// Same with the uniforms, as the current storage will belong to the previous command buffer.
void InvalidateConstants();
// Set dirty flags on everything to force re-bind at next draw time.
void SetPendingRebind();