mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
Vulkan: Move shader/pipeline-related methods to ShaderCache
This commit is contained in:
parent
d23fd17e1a
commit
aff44684a4
17 changed files with 1258 additions and 1156 deletions
|
@ -12,6 +12,7 @@
|
|||
|
||||
#include "VideoBackends/Vulkan/CommandBufferManager.h"
|
||||
#include "VideoBackends/Vulkan/ObjectCache.h"
|
||||
#include "VideoBackends/Vulkan/ShaderCache.h"
|
||||
#include "VideoBackends/Vulkan/ShaderCompiler.h"
|
||||
#include "VideoBackends/Vulkan/StateTracker.h"
|
||||
#include "VideoBackends/Vulkan/StreamBuffer.h"
|
||||
|
@ -720,7 +721,7 @@ void UtilityShaderDraw::BindDescriptors()
|
|||
|
||||
bool UtilityShaderDraw::BindPipeline()
|
||||
{
|
||||
VkPipeline pipeline = g_object_cache->GetPipeline(m_pipeline_info);
|
||||
VkPipeline pipeline = g_shader_cache->GetPipeline(m_pipeline_info);
|
||||
if (pipeline == VK_NULL_HANDLE)
|
||||
{
|
||||
PanicAlert("Failed to get pipeline for backend shader draw");
|
||||
|
@ -873,7 +874,7 @@ void ComputeShaderDispatcher::BindDescriptors()
|
|||
|
||||
bool ComputeShaderDispatcher::BindPipeline()
|
||||
{
|
||||
VkPipeline pipeline = g_object_cache->GetComputePipeline(m_pipeline_info);
|
||||
VkPipeline pipeline = g_shader_cache->GetComputePipeline(m_pipeline_info);
|
||||
if (pipeline == VK_NULL_HANDLE)
|
||||
{
|
||||
PanicAlert("Failed to get pipeline for backend compute dispatch");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue