summaryrefslogtreecommitdiffstats
path: root/src/video_core/vertex_loader.cpp
diff options
context:
space:
mode:
authorHenrik Rydgard <hrydgard@gmail.com>2016-04-28 19:40:11 +0200
committerHenrik Rydgard <hrydgard@gmail.com>2016-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
yuzu-d00e2340c63c61ccb987c4ab0d76957f6cc84144.tar.gz
yuzu-d00e2340c63c61ccb987c4ab0d76957f6cc84144.tar.bz2
yuzu-d00e2340c63c61ccb987c4ab0d76957f6cc84144.tar.lz
yuzu-d00e2340c63c61ccb987c4ab0d76957f6cc84144.tar.xz
yuzu-d00e2340c63c61ccb987c4ab0d76957f6cc84144.tar.zst
yuzu-d00e2340c63c61ccb987c4ab0d76957f6cc84144.zip
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 @@
#include "debug_utils/debug_utils.h"
-#include "pica.h"
-#include "pica_state.h"
-#include "pica_types.h"
-#include "vertex_loader.h"
+#include "video_core/pica.h"
+#include "video_core/pica_state.h"
+#include "video_core/pica_types.h"
+#include "video_core/vertex_loader.h"
namespace Pica {
-void VertexLoader::Setup(const Pica::Regs &regs) {
+void VertexLoader::Setup(const Pica::Regs& regs) {
const auto& attribute_config = regs.vertex_attributes;
base_address = attribute_config.GetPhysicalBaseAddress();
num_total_attributes = attribute_config.GetNumTotalAttributes();
@@ -66,7 +66,7 @@ void VertexLoader::Setup(const Pica::Regs &regs) {
}
}
-void VertexLoader::LoadVertex(int index, int vertex, Shader::InputVertex &input, MemoryAccesses &memory_accesses) {
+void VertexLoader::LoadVertex(int index, int vertex, Shader::InputVertex& input, MemoryAccesses& memory_accesses) {
for (int i = 0; i < num_total_attributes; ++i) {
if (vertex_attribute_elements[i] != 0) {
// Default attribute values set if array elements have < 4 components. This