summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/shader_interpreter.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2016-12-17 10:30:55 +0100
committerYuri Kunde Schlesner <yuriks@yuriks.net>2017-01-26 03:53:24 +0100
commitade7ed7c5fd383e77c4d6949e652e1fd83844233 (patch)
treed356114242bafede2832a8ae8521da64321ac827 /src/video_core/shader/shader_interpreter.h
parentDebugger: Always use interpreter for shader debugging (diff)
downloadyuzu-ade7ed7c5fd383e77c4d6949e652e1fd83844233.tar
yuzu-ade7ed7c5fd383e77c4d6949e652e1fd83844233.tar.gz
yuzu-ade7ed7c5fd383e77c4d6949e652e1fd83844233.tar.bz2
yuzu-ade7ed7c5fd383e77c4d6949e652e1fd83844233.tar.lz
yuzu-ade7ed7c5fd383e77c4d6949e652e1fd83844233.tar.xz
yuzu-ade7ed7c5fd383e77c4d6949e652e1fd83844233.tar.zst
yuzu-ade7ed7c5fd383e77c4d6949e652e1fd83844233.zip
Diffstat (limited to 'src/video_core/shader/shader_interpreter.h')
-rw-r--r--src/video_core/shader/shader_interpreter.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/video_core/shader/shader_interpreter.h b/src/video_core/shader/shader_interpreter.h
index 43c1ed5ea..c3691da70 100644
--- a/src/video_core/shader/shader_interpreter.h
+++ b/src/video_core/shader/shader_interpreter.h
@@ -4,6 +4,7 @@
#pragma once
+#include "video_core/shader/debug_data.h"
#include "video_core/shader/shader.h"
namespace Pica {
@@ -14,8 +15,16 @@ class InterpreterEngine final : public ShaderEngine {
public:
void SetupBatch(const ShaderSetup* setup) override;
void Run(UnitState& state, unsigned int entry_point) const override;
+
+ /**
+ * Produce debug information based on the given shader and input vertex
+ * @param input Input vertex into the shader
+ * @param num_attributes The number of vertex shader attributes
+ * @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 override;
+ unsigned int entry_point) const;
private:
const ShaderSetup* setup = nullptr;