diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-12-17 06:41:38 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-01-26 03:53:20 +0100 |
commit | 34d581f2dcffa9f54e96af230a56cb01e8e2fccd (patch) | |
tree | 5db8f302534297bf2ef9aa16e572da9866db93f1 /src/video_core/shader/shader.h | |
parent | Merge pull request #2434 from mailwl/nfc-amiibo (diff) | |
download | yuzu-34d581f2dcffa9f54e96af230a56cb01e8e2fccd.tar yuzu-34d581f2dcffa9f54e96af230a56cb01e8e2fccd.tar.gz yuzu-34d581f2dcffa9f54e96af230a56cb01e8e2fccd.tar.bz2 yuzu-34d581f2dcffa9f54e96af230a56cb01e8e2fccd.tar.lz yuzu-34d581f2dcffa9f54e96af230a56cb01e8e2fccd.tar.xz yuzu-34d581f2dcffa9f54e96af230a56cb01e8e2fccd.tar.zst yuzu-34d581f2dcffa9f54e96af230a56cb01e8e2fccd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/shader.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/video_core/shader/shader.h b/src/video_core/shader/shader.h index 2b07759b9..c5d23e0ea 100644 --- a/src/video_core/shader/shader.h +++ b/src/video_core/shader/shader.h @@ -142,6 +142,14 @@ struct UnitState { return 0; } } + + /** + * Loads the unit state with an input vertex. + * + * @param input Input vertex into the shader + * @param num_attributes The number of vertex shader attributes to load + */ + void LoadInputVertex(const InputVertex& input, int num_attributes); }; /// Clears the shader cache @@ -182,10 +190,8 @@ struct ShaderSetup { /** * Runs the currently setup shader * @param state Shader unit state, must be setup per shader and per shader unit - * @param input Input vertex into the shader - * @param num_attributes The number of vertex shader attributes */ - void Run(UnitState& state, const InputVertex& input, int num_attributes); + void Run(UnitState& state); /** * Produce debug information based on the given shader and input vertex |