summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OpcodeDecoding.h
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-08-17 22:34:30 -0400
committerGitHub <noreply@github.com>2025-08-17 22:34:30 -0400
commit32e621765e4407fbd854159936f50866bf6fb75d (patch)
treefa5a476916e1dbec359f1ca7e292eb95d6a7c769 /Source/Core/VideoCommon/OpcodeDecoding.h
parent52806b3dc82954bf222166d5870e0d8825c977d9 (diff)
parent37758fa2907b3e844e5f7c4b632016fc816694fe (diff)
Merge pull request #13879 from Tilka/get_vertex_size
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
};