mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
OpenGL: Pass system to UploadConstants
This commit is contained in:
parent
be20ca2287
commit
48aae964b4
@ -197,6 +197,6 @@ void VertexManager::CommitBuffer(u32 num_vertices, u32 vertex_stride, u32 num_in
|
||||
|
||||
void VertexManager::UploadUniforms()
|
||||
{
|
||||
ProgramShaderCache::UploadConstants();
|
||||
ProgramShaderCache::UploadConstants(m_system);
|
||||
}
|
||||
} // namespace OGL
|
||||
|
||||
@ -221,9 +221,8 @@ u32 ProgramShaderCache::GetUniformBufferAlignment()
|
||||
return s_ubo_align;
|
||||
}
|
||||
|
||||
void ProgramShaderCache::UploadConstants()
|
||||
void ProgramShaderCache::UploadConstants(Core::System& system)
|
||||
{
|
||||
auto& system = Core::System::GetInstance();
|
||||
auto& pixel_shader_manager = system.GetPixelShaderManager();
|
||||
auto& vertex_shader_manager = system.GetVertexShaderManager();
|
||||
auto& geometry_shader_manager = system.GetGeometryShaderManager();
|
||||
|
||||
@ -12,6 +12,11 @@
|
||||
#include "Common/GL/GLUtil.h"
|
||||
#include "VideoCommon/AsyncShaderCompiler.h"
|
||||
|
||||
namespace Core
|
||||
{
|
||||
class System;
|
||||
}
|
||||
|
||||
namespace OGL
|
||||
{
|
||||
class OGLShader;
|
||||
@ -81,7 +86,7 @@ public:
|
||||
std::string_view gcode);
|
||||
static StreamBuffer* GetUniformBuffer();
|
||||
static u32 GetUniformBufferAlignment();
|
||||
static void UploadConstants();
|
||||
static void UploadConstants(Core::System& system);
|
||||
static void UploadConstants(const void* data, u32 data_size);
|
||||
|
||||
static void Init();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user