summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OpcodeDecoding.h
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2025-08-17 10:30:32 +0100
committerTillmann Karras <tilkax@gmail.com>2025-08-18 01:41:14 +0100
commit37758fa2907b3e844e5f7c4b632016fc816694fe (patch)
treefa5a476916e1dbec359f1ca7e292eb95d6a7c769 /Source/Core/VideoCommon/OpcodeDecoding.h
parent52806b3dc82954bf222166d5870e0d8825c977d9 (diff)
OpcodeDecoder: provide default GetVertexSize() implementation
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.h')
-rw-r--r--Source/Core/VideoCommon/OpcodeDecoding.h6
1 files changed, 5 insertions, 1 deletions
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
};