From 37758fa2907b3e844e5f7c4b632016fc816694fe Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 17 Aug 2025 10:30:32 +0100 Subject: OpcodeDecoder: provide default GetVertexSize() implementation --- Source/Core/VideoCommon/OpcodeDecoding.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/OpcodeDecoding.h') diff --git a/Source/Core/VideoCommon/OpcodeDecoding.h b/Source/Core/VideoCommon/OpcodeDecoding.h index 42991b7715..36a56a0fe2 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.h +++ b/Source/Core/VideoCommon/OpcodeDecoding.h @@ -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 }; -- cgit v1.2.3