summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_processor.cpp
diff options
context:
space:
mode:
authorJannik Vogel <email@jannikvogel.de>2016-03-30 02:45:18 +0200
committerJannik Vogel <email@jannikvogel.de>2016-05-11 23:48:24 +0200
commitae7a82fa1c65b4efc9e7bf9863fa229778a72d1c (patch)
tree5a2da227058d4f22b3e3e0d21a1f13a02f7e5e37 /src/video_core/command_processor.cpp
parentMerge pull request #1621 from JayFoxRox/w-buffer (diff)
downloadyuzu-ae7a82fa1c65b4efc9e7bf9863fa229778a72d1c.tar
yuzu-ae7a82fa1c65b4efc9e7bf9863fa229778a72d1c.tar.gz
yuzu-ae7a82fa1c65b4efc9e7bf9863fa229778a72d1c.tar.bz2
yuzu-ae7a82fa1c65b4efc9e7bf9863fa229778a72d1c.tar.lz
yuzu-ae7a82fa1c65b4efc9e7bf9863fa229778a72d1c.tar.xz
yuzu-ae7a82fa1c65b4efc9e7bf9863fa229778a72d1c.tar.zst
yuzu-ae7a82fa1c65b4efc9e7bf9863fa229778a72d1c.zip
Diffstat (limited to 'src/video_core/command_processor.cpp')
-rw-r--r--src/video_core/command_processor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp
index dd1379503..e7dc5ddac 100644
--- a/src/video_core/command_processor.cpp
+++ b/src/video_core/command_processor.cpp
@@ -144,12 +144,12 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) {
immediate_attribute_id = 0;
Shader::UnitState<false> shader_unit;
- Shader::Setup();
+ g_state.vs.Setup();
// Send to vertex shader
if (g_debug_context)
g_debug_context->OnEvent(DebugContext::Event::VertexShaderInvocation, static_cast<void*>(&immediate_input));
- Shader::OutputVertex output = Shader::Run(shader_unit, immediate_input, regs.vs.num_input_attributes+1);
+ Shader::OutputVertex output = g_state.vs.Run(shader_unit, immediate_input, regs.vs.num_input_attributes+1);
// Send to renderer
using Pica::Shader::OutputVertex;
@@ -237,7 +237,7 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) {
vertex_cache_ids.fill(-1);
Shader::UnitState<false> shader_unit;
- Shader::Setup();
+ g_state.vs.Setup();
for (unsigned int index = 0; index < regs.num_vertices; ++index)
{
@@ -274,7 +274,7 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) {
// Send to vertex shader
if (g_debug_context)
g_debug_context->OnEvent(DebugContext::Event::VertexShaderInvocation, (void*)&input);
- output = Shader::Run(shader_unit, input, loader.GetNumTotalAttributes());
+ output = g_state.vs.Run(shader_unit, input, loader.GetNumTotalAttributes());
if (is_indexed) {
vertex_cache[vertex_cache_pos] = output;