summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/shader_interpreter.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2016-12-18 01:06:04 +0100
committerYuri Kunde Schlesner <yuriks@yuriks.net>2017-01-26 03:53:25 +0100
commit0f642741451e3f75c2f1d64ae9beccaf1437f12c (patch)
treef964da57def5be6b8d5bc41176db97668bd01125 /src/video_core/shader/shader_interpreter.h
parentShader: Remove OutputRegisters struct (diff)
downloadyuzu-0f642741451e3f75c2f1d64ae9beccaf1437f12c.tar
yuzu-0f642741451e3f75c2f1d64ae9beccaf1437f12c.tar.gz
yuzu-0f642741451e3f75c2f1d64ae9beccaf1437f12c.tar.bz2
yuzu-0f642741451e3f75c2f1d64ae9beccaf1437f12c.tar.lz
yuzu-0f642741451e3f75c2f1d64ae9beccaf1437f12c.tar.xz
yuzu-0f642741451e3f75c2f1d64ae9beccaf1437f12c.tar.zst
yuzu-0f642741451e3f75c2f1d64ae9beccaf1437f12c.zip
Diffstat (limited to 'src/video_core/shader/shader_interpreter.h')
-rw-r--r--src/video_core/shader/shader_interpreter.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/video_core/shader/shader_interpreter.h b/src/video_core/shader/shader_interpreter.h
index c3691da70..7f94d405f 100644
--- a/src/video_core/shader/shader_interpreter.h
+++ b/src/video_core/shader/shader_interpreter.h
@@ -13,8 +13,8 @@ namespace Shader {
class InterpreterEngine final : public ShaderEngine {
public:
- void SetupBatch(const ShaderSetup* setup) override;
- void Run(UnitState& state, unsigned int entry_point) const override;
+ void SetupBatch(ShaderSetup& setup) override;
+ void Run(const ShaderSetup& setup, UnitState& state, unsigned int entry_point) const override;
/**
* Produce debug information based on the given shader and input vertex
@@ -23,11 +23,8 @@ public:
* @param config Configuration object for the shader pipeline
* @return Debug information for this shader with regards to the given vertex
*/
- DebugData<true> ProduceDebugInfo(const InputVertex& input, int num_attributes,
- unsigned int entry_point) const;
-
-private:
- const ShaderSetup* setup = nullptr;
+ DebugData<true> ProduceDebugInfo(const ShaderSetup& setup, const InputVertex& input,
+ int num_attributes, unsigned int entry_point) const;
};
} // namespace