mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-23 00:19:03 +00:00
OpcodeDecoder: provide default GetVertexSize() implementation
This commit is contained in:
parent
52806b3dc8
commit
37758fa290
4 changed files with 5 additions and 21 deletions
|
@ -111,7 +111,11 @@ public:
|
|||
// Get the current CP state. Needed for vertex decoding; will also be mutated for CP commands.
|
||||
virtual CPState& GetCPState() = 0;
|
||||
|
||||
virtual u32 GetVertexSize(u8 vat) = 0;
|
||||
virtual u32 GetVertexSize(u8 vat)
|
||||
{
|
||||
const CPState& cpmem = GetCPState();
|
||||
return VertexLoaderBase::GetVertexSize(cpmem.vtx_desc, cpmem.vtx_attr[vat]);
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue