summaryrefslogtreecommitdiff
path: root/src/video_core/vertex_loader.cpp
diff options
context:
space:
mode:
authorGravatar Henrik Rydgard2016-04-28 19:40:11 +0200
committerGravatar Henrik Rydgard2016-04-28 19:40:11 +0200
commitd00e2340c63c61ccb987c4ab0d76957f6cc84144 (patch)
treeb46216ab565f212c76fe58735b1467baecbf3327 /src/video_core/vertex_loader.cpp
parentRefactor: Extract VertexLoader from command_processor.cpp. (diff)
downloadyuzu-d00e2340c63c61ccb987c4ab0d76957f6cc84144.tar.gz
yuzu-d00e2340c63c61ccb987c4ab0d76957f6cc84144.tar.xz
yuzu-d00e2340c63c61ccb987c4ab0d76957f6cc84144.zip
Move "&" to their proper place, add missing includes and make some properly relative.
Diffstat (limited to 'src/video_core/vertex_loader.cpp')
-rw-r--r--src/video_core/vertex_loader.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/video_core/vertex_loader.cpp b/src/video_core/vertex_loader.cpp
index 258002b07..958201e5e 100644
--- a/src/video_core/vertex_loader.cpp
+++ b/src/video_core/vertex_loader.cpp
@@ -14,14 +14,14 @@
14 14
15#include "debug_utils/debug_utils.h" 15#include "debug_utils/debug_utils.h"
16 16
17#include "pica.h" 17#include "video_core/pica.h"
18#include "pica_state.h" 18#include "video_core/pica_state.h"
19#include "pica_types.h" 19#include "video_core/pica_types.h"
20#include "vertex_loader.h" 20#include "video_core/vertex_loader.h"
21 21
22namespace Pica { 22namespace Pica {
23 23
24void VertexLoader::Setup(const Pica::Regs &regs) { 24void VertexLoader::Setup(const Pica::Regs& regs) {
25 const auto& attribute_config = regs.vertex_attributes; 25 const auto& attribute_config = regs.vertex_attributes;
26 base_address = attribute_config.GetPhysicalBaseAddress(); 26 base_address = attribute_config.GetPhysicalBaseAddress();
27 num_total_attributes = attribute_config.GetNumTotalAttributes(); 27 num_total_attributes = attribute_config.GetNumTotalAttributes();
@@ -66,7 +66,7 @@ void VertexLoader::Setup(const Pica::Regs &regs) {
66 } 66 }
67} 67}
68 68
69void VertexLoader::LoadVertex(int index, int vertex, Shader::InputVertex &input, MemoryAccesses &memory_accesses) { 69void VertexLoader::LoadVertex(int index, int vertex, Shader::InputVertex& input, MemoryAccesses& memory_accesses) {
70 for (int i = 0; i < num_total_attributes; ++i) { 70 for (int i = 0; i < num_total_attributes; ++i) {
71 if (vertex_attribute_elements[i] != 0) { 71 if (vertex_attribute_elements[i] != 0) {
72 // Default attribute values set if array elements have < 4 components. This 72 // Default attribute values set if array elements have < 4 components. This