diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-07 17:52:45 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-10-06 21:00:51 +0200 |
commit | 3f8e7a55851a613becf715cbf3016a8e9f63d65f (patch) | |
tree | 6b42cdddda0fb26fd0241ae2def28416179c3d51 /src/video_core/renderer_opengl/gl_graphics_pipeline.h | |
parent | OpenGl: Implement Channels. (diff) | |
download | yuzu-3f8e7a55851a613becf715cbf3016a8e9f63d65f.tar yuzu-3f8e7a55851a613becf715cbf3016a8e9f63d65f.tar.gz yuzu-3f8e7a55851a613becf715cbf3016a8e9f63d65f.tar.bz2 yuzu-3f8e7a55851a613becf715cbf3016a8e9f63d65f.tar.lz yuzu-3f8e7a55851a613becf715cbf3016a8e9f63d65f.tar.xz yuzu-3f8e7a55851a613becf715cbf3016a8e9f63d65f.tar.zst yuzu-3f8e7a55851a613becf715cbf3016a8e9f63d65f.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_graphics_pipeline.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_graphics_pipeline.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/video_core/renderer_opengl/gl_graphics_pipeline.h b/src/video_core/renderer_opengl/gl_graphics_pipeline.h index 4ec15b966..a0f0e63cb 100644 --- a/src/video_core/renderer_opengl/gl_graphics_pipeline.h +++ b/src/video_core/renderer_opengl/gl_graphics_pipeline.h @@ -71,10 +71,9 @@ static_assert(std::is_trivially_constructible_v<GraphicsPipelineKey>); class GraphicsPipeline { public: explicit GraphicsPipeline(const Device& device, TextureCache& texture_cache_, - BufferCache& buffer_cache_, Tegra::MemoryManager& gpu_memory_, - Tegra::Engines::Maxwell3D& maxwell3d_, - ProgramManager& program_manager_, StateTracker& state_tracker_, - ShaderWorker* thread_worker, VideoCore::ShaderNotify* shader_notify, + BufferCache& buffer_cache_, ProgramManager& program_manager_, + StateTracker& state_tracker_, ShaderWorker* thread_worker, + VideoCore::ShaderNotify* shader_notify, std::array<std::string, 5> sources, std::array<std::vector<u32>, 5> sources_spirv, const std::array<const Shader::Info*, 5>& infos, @@ -107,6 +106,11 @@ public: }; } + void SetEngine(Tegra::Engines::Maxwell3D* maxwell3d_, Tegra::MemoryManager* gpu_memory_) { + maxwell3d = maxwell3d_; + gpu_memory = gpu_memory_; + } + private: template <typename Spec> void ConfigureImpl(bool is_indexed); @@ -119,8 +123,8 @@ private: TextureCache& texture_cache; BufferCache& buffer_cache; - Tegra::MemoryManager& gpu_memory; - Tegra::Engines::Maxwell3D& maxwell3d; + Tegra::MemoryManager* gpu_memory; + Tegra::Engines::Maxwell3D* maxwell3d; ProgramManager& program_manager; StateTracker& state_tracker; const GraphicsPipelineKey key; |