mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-02-25 23:00:48 -05:00
OpcodeDecoder: provide default GetVertexSize() implementation
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user