mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
OpcodeDecoding: Get vertex size from the loader
This commit is contained in:
parent
a6c6ec012c
commit
2db74e7f21
5 changed files with 29 additions and 2 deletions
|
@ -316,6 +316,11 @@ public:
|
|||
|
||||
OPCODE_CALLBACK(CPState& GetCPState()) { return m_cpmem; }
|
||||
|
||||
OPCODE_CALLBACK(u32 GetVertexSize(u8 vat))
|
||||
{
|
||||
return VertexLoaderBase::GetVertexSize(GetCPState().vtx_desc, GetCPState().vtx_attr[vat]);
|
||||
}
|
||||
|
||||
QString text;
|
||||
CPState m_cpmem;
|
||||
};
|
||||
|
@ -731,6 +736,11 @@ public:
|
|||
|
||||
OPCODE_CALLBACK(CPState& GetCPState()) { return m_cpmem; }
|
||||
|
||||
OPCODE_CALLBACK(u32 GetVertexSize(u8 vat))
|
||||
{
|
||||
return VertexLoaderBase::GetVertexSize(GetCPState().vtx_desc, GetCPState().vtx_attr[vat]);
|
||||
}
|
||||
|
||||
QString text;
|
||||
CPState m_cpmem;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue