mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
vk: Enable deferred descriptor updates via descriptor-indexing
This commit is contained in:
parent
381c7544fa
commit
ba2a8ebf2e
10 changed files with 164 additions and 66 deletions
|
|
@ -1,9 +1,12 @@
|
|||
#include "stdafx.h"
|
||||
#include "VKCommandStream.h"
|
||||
#include "vkutils/descriptors.h"
|
||||
#include "vkutils/sync.h"
|
||||
|
||||
#include "Emu/IdManager.h"
|
||||
#include "Emu/system_config.h"
|
||||
#include "Emu/RSX/RSXOffload.h"
|
||||
#include "Emu/RSX/RSXThread.h"
|
||||
#include "Emu/system_config.h"
|
||||
|
||||
namespace vk
|
||||
{
|
||||
|
|
@ -22,6 +25,11 @@ namespace vk
|
|||
|
||||
void queue_submit(VkQueue queue, const VkSubmitInfo* info, fence* pfence, VkBool32 flush)
|
||||
{
|
||||
if (rsx::get_current_renderer()->is_current_thread())
|
||||
{
|
||||
vk::descriptors::flush();
|
||||
}
|
||||
|
||||
if (!flush && g_cfg.video.multithreaded_rsx)
|
||||
{
|
||||
auto packet = new submit_packet(queue, pfence, info);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue