mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-22 02:09:06 +00:00
Vulkan: Allow re-use of uniform buffers when doing per-stage uploads
This is safe now because we invalidate the pointers after submitting a command buffer.
This commit is contained in:
parent
6a4eba1153
commit
ca691a9d95
2 changed files with 33 additions and 42 deletions
|
@ -174,6 +174,11 @@ private:
|
|||
|
||||
bool UpdatePipeline();
|
||||
bool UpdateDescriptorSet();
|
||||
|
||||
// Allocates storage in the uniform buffer of the specified size. If this storage cannot be
|
||||
// allocated immediately, the current command buffer will be submitted and all stage's
|
||||
// constants will be re-uploaded. false will be returned in this case, otherwise true.
|
||||
bool ReserveConstantStorage();
|
||||
void UploadAllConstants();
|
||||
|
||||
// Which bindings/state has to be updated before the next draw.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue