summaryrefslogtreecommitdiff
path: root/src/video_core/vertex_loader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/vertex_loader.h')
-rw-r--r--src/video_core/vertex_loader.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/video_core/vertex_loader.h b/src/video_core/vertex_loader.h
deleted file mode 100644
index 02db10aee..000000000
--- a/src/video_core/vertex_loader.h
+++ /dev/null
@@ -1,42 +0,0 @@
1#pragma once
2
3#include <array>
4#include "common/common_types.h"
5#include "video_core/regs_pipeline.h"
6
7namespace Pica {
8
9namespace DebugUtils {
10class MemoryAccessTracker;
11}
12
13namespace Shader {
14struct AttributeBuffer;
15}
16
17class VertexLoader {
18public:
19 VertexLoader() = default;
20 explicit VertexLoader(const PipelineRegs& regs) {
21 Setup(regs);
22 }
23
24 void Setup(const PipelineRegs& regs);
25 void LoadVertex(u32 base_address, int index, int vertex, Shader::AttributeBuffer& input,
26 DebugUtils::MemoryAccessTracker& memory_accesses);
27
28 int GetNumTotalAttributes() const {
29 return num_total_attributes;
30 }
31
32private:
33 std::array<u32, 16> vertex_attribute_sources;
34 std::array<u32, 16> vertex_attribute_strides{};
35 std::array<PipelineRegs::VertexAttributeFormat, 16> vertex_attribute_formats;
36 std::array<u32, 16> vertex_attribute_elements{};
37 std::array<bool, 16> vertex_attribute_is_default;
38 int num_total_attributes = 0;
39 bool is_setup = false;
40};
41
42} // namespace Pica