diff options
| author | Lioncash <mathew1800@gmail.com> | 2016-04-29 11:23:40 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2016-05-08 23:03:32 -0400 |
| commit | 1357724cd946f3a9f31dbe3ace55a9588f3c6f2f (patch) | |
| tree | 7cbe25e63e854c1b412c34bd5ae3a449ecb4a56c /src/video_core/vertex_loader.h | |
| parent | 769f4a7018e170448f7f1c307f2bcfa26f59ecba (diff) | |
vertex_loader: Add constructors to facilitate immediate and two-step initialization
Diffstat (limited to 'src/video_core/vertex_loader.h')
| -rw-r--r-- | src/video_core/vertex_loader.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/vertex_loader.h b/src/video_core/vertex_loader.h index 4ed8cd3fd..2a97b97c8 100644 --- a/src/video_core/vertex_loader.h +++ b/src/video_core/vertex_loader.h @@ -17,6 +17,11 @@ class InputVertex; class VertexLoader { public: + VertexLoader() = default; + explicit VertexLoader(const Pica::Regs& regs) { + Setup(regs); + } + void Setup(const Pica::Regs& regs); void LoadVertex(u32 base_address, int index, int vertex, Shader::InputVertex& input, DebugUtils::MemoryAccessTracker& memory_accesses); |
