mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Convert OpcodeDecoder::Opcode and OpcodeDecoder::Primitive to enum class
This commit is contained in:
@ -6,9 +6,14 @@
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "VideoBackends/Software/NativeVertexFormat.h"
|
||||
|
||||
namespace OpcodeDecoder
|
||||
{
|
||||
enum class Primitive : u8;
|
||||
}
|
||||
|
||||
class SetupUnit
|
||||
{
|
||||
u8 m_PrimType = 0;
|
||||
OpcodeDecoder::Primitive m_PrimType{};
|
||||
int m_VertexCounter = 0;
|
||||
|
||||
OutputVertexData m_Vertices[3];
|
||||
@ -24,7 +29,7 @@ class SetupUnit
|
||||
void SetupPoint();
|
||||
|
||||
public:
|
||||
void Init(u8 primitiveType);
|
||||
void Init(OpcodeDecoder::Primitive primitive_type);
|
||||
|
||||
OutputVertexData* GetVertex();
|
||||
|
||||
|
Reference in New Issue
Block a user