diff options
Diffstat (limited to 'src/video_core/vertex_loader.h')
| -rw-r--r-- | src/video_core/vertex_loader.h | 42 |
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 | |||
| 7 | namespace Pica { | ||
| 8 | |||
| 9 | namespace DebugUtils { | ||
| 10 | class MemoryAccessTracker; | ||
| 11 | } | ||
| 12 | |||
| 13 | namespace Shader { | ||
| 14 | struct AttributeBuffer; | ||
| 15 | } | ||
| 16 | |||
| 17 | class VertexLoader { | ||
| 18 | public: | ||
| 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 | |||
| 32 | private: | ||
| 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 | ||