diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-20 07:23:50 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:39 +0200 |
commit | f5db8c74405c93b52efbdef318790bd9ec4661c7 (patch) | |
tree | b95c6eab579ef403c6c3cd454461decc4ec9e4d6 /src/video_core/renderer_opengl/gl_graphics_pipeline.h | |
parent | gl_graphics_pipeline: Port optimizations from Vulkan pipelines (diff) | |
download | yuzu-f5db8c74405c93b52efbdef318790bd9ec4661c7.tar yuzu-f5db8c74405c93b52efbdef318790bd9ec4661c7.tar.gz yuzu-f5db8c74405c93b52efbdef318790bd9ec4661c7.tar.bz2 yuzu-f5db8c74405c93b52efbdef318790bd9ec4661c7.tar.lz yuzu-f5db8c74405c93b52efbdef318790bd9ec4661c7.tar.xz yuzu-f5db8c74405c93b52efbdef318790bd9ec4661c7.tar.zst yuzu-f5db8c74405c93b52efbdef318790bd9ec4661c7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_graphics_pipeline.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_graphics_pipeline.h b/src/video_core/renderer_opengl/gl_graphics_pipeline.h index a3546daa8..a033d4a95 100644 --- a/src/video_core/renderer_opengl/gl_graphics_pipeline.h +++ b/src/video_core/renderer_opengl/gl_graphics_pipeline.h @@ -73,7 +73,7 @@ public: ShaderWorker* thread_worker, VideoCore::ShaderNotify* shader_notify, std::array<std::string, 5> sources, const std::array<const Shader::Info*, 5>& infos, - const VideoCommon::TransformFeedbackState* xfb_state); + const GraphicsPipelineKey& key_); void Configure(bool is_indexed) { configure_func(this, is_indexed); @@ -85,6 +85,10 @@ public: } } + [[nodiscard]] const GraphicsPipelineKey& Key() const noexcept { + return key; + } + [[nodiscard]] bool WritesGlobalMemory() const noexcept { return writes_global_memory; } @@ -106,7 +110,7 @@ private: void ConfigureTransformFeedbackImpl() const; - void GenerateTransformFeedbackState(const VideoCommon::TransformFeedbackState& xfb_state); + void GenerateTransformFeedbackState(); TextureCache& texture_cache; BufferCache& buffer_cache; @@ -114,6 +118,7 @@ private: Tegra::Engines::Maxwell3D& maxwell3d; ProgramManager& program_manager; StateTracker& state_tracker; + const GraphicsPipelineKey key; void (*configure_func)(GraphicsPipeline*, bool){}; |