summaryrefslogtreecommitdiff
path: root/src/video_core/vertex_loader.h
diff options
context:
space:
mode:
authorGravatar Henrik Rydgard2016-04-28 20:17:35 +0200
committerGravatar Henrik Rydgard2016-04-28 20:17:35 +0200
commit2403e86cbb5c49afeceb98f7c6e843da78dff415 (patch)
treee50eecedf62fd47638bf603eb334161d72871021 /src/video_core/vertex_loader.h
parentMove "&" to their proper place, add missing includes and make some properly r... (diff)
downloadyuzu-2403e86cbb5c49afeceb98f7c6e843da78dff415.tar.gz
yuzu-2403e86cbb5c49afeceb98f7c6e843da78dff415.tar.xz
yuzu-2403e86cbb5c49afeceb98f7c6e843da78dff415.zip
Don't keep base_address in the loader, it doesn't belong there (with it, the loader can't be cached).
Diffstat (limited to 'src/video_core/vertex_loader.h')
-rw-r--r--src/video_core/vertex_loader.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/vertex_loader.h b/src/video_core/vertex_loader.h
index 560d36edc..40c5e83c9 100644
--- a/src/video_core/vertex_loader.h
+++ b/src/video_core/vertex_loader.h
@@ -38,10 +38,10 @@ public:
38class VertexLoader { 38class VertexLoader {
39public: 39public:
40 void Setup(const Pica::Regs& regs); 40 void Setup(const Pica::Regs& regs);
41 void LoadVertex(int index, int vertex, Shader::InputVertex& input, MemoryAccesses& memory_accesses); 41 void LoadVertex(u32 base_address, int index, int vertex, Shader::InputVertex& input, MemoryAccesses& memory_accesses);
42 42
43 u32 GetPhysicalBaseAddress() const { return base_address; }
44 int GetNumTotalAttributes() const { return num_total_attributes; } 43 int GetNumTotalAttributes() const { return num_total_attributes; }
44
45private: 45private:
46 u32 vertex_attribute_sources[16]; 46 u32 vertex_attribute_sources[16];
47 u32 vertex_attribute_strides[16] = {}; 47 u32 vertex_attribute_strides[16] = {};
@@ -49,7 +49,6 @@ private:
49 u32 vertex_attribute_elements[16] = {}; 49 u32 vertex_attribute_elements[16] = {};
50 u32 vertex_attribute_element_size[16] = {}; 50 u32 vertex_attribute_element_size[16] = {};
51 bool vertex_attribute_is_default[16]; 51 bool vertex_attribute_is_default[16];
52 u32 base_address;
53 int num_total_attributes; 52 int num_total_attributes;
54}; 53};
55 54