mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Convert OpcodeDecoder::Opcode and OpcodeDecoder::Primitive to enum class
This commit is contained in:
parent
3fc12431c5
commit
3aaeb2b9ef
13 changed files with 177 additions and 132 deletions
|
@ -14,6 +14,11 @@ class DataReader;
|
|||
class NativeVertexFormat;
|
||||
struct PortableVertexDeclaration;
|
||||
|
||||
namespace OpcodeDecoder
|
||||
{
|
||||
enum class Primitive : u8;
|
||||
};
|
||||
|
||||
namespace VertexLoaderManager
|
||||
{
|
||||
using NativeVertexFormatMap =
|
||||
|
@ -35,7 +40,8 @@ NativeVertexFormat* GetOrCreateMatchingFormat(const PortableVertexDeclaration& d
|
|||
NativeVertexFormat* GetUberVertexFormat(const PortableVertexDeclaration& decl);
|
||||
|
||||
// Returns -1 if buf_size is insufficient, else the amount of bytes consumed
|
||||
int RunVertices(int vtx_attr_group, int primitive, int count, DataReader src, bool is_preprocess);
|
||||
int RunVertices(int vtx_attr_group, OpcodeDecoder::Primitive primitive, int count, DataReader src,
|
||||
bool is_preprocess);
|
||||
|
||||
NativeVertexFormat* GetCurrentVertexFormat();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue