Debian Codegraph @

Source/Core/VideoBackends/Software/SetupUnit.h

raw symbols SCIP
1 // Copyright 2008 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include "Common/CommonTypes.h"
7 #include "VideoBackends/Software/NativeVertexFormat.h"
8
9 namespace OpcodeDecoder
10 {
11 enum class Primitive : u8;
12 }
13
14 class SetupUnit
15 {
16 OpcodeDecoder::Primitive m_PrimType{};
17 int m_VertexCounter = 0;
18
19 OutputVertexData m_Vertices[3];
20 OutputVertexData* m_VertPointer[3]{};
21 OutputVertexData* m_VertWritePointer{};
22
23 void SetupQuad();
24 void SetupTriangle();
25 void SetupTriStrip();
26 void SetupTriFan();
27 void SetupLine();
28 void SetupLineStrip();
29 void SetupPoint();
30
31 public:
32 void Init(OpcodeDecoder::Primitive primitive_type);
33
34 OutputVertexData* GetVertex();
35
36 void SetupVertex();
37 };