From 745f1b971c8810d8471cbb5e65f730de67a39f69 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sun, 3 Dec 2023 17:46:00 -0600 Subject: [PATCH] VideoCommon: expose index generator data so it can be hashed --- Source/Core/VideoCommon/IndexGenerator.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/VideoCommon/IndexGenerator.h b/Source/Core/VideoCommon/IndexGenerator.h index 3c57ea7803..4b1fb0f3c0 100644 --- a/Source/Core/VideoCommon/IndexGenerator.h +++ b/Source/Core/VideoCommon/IndexGenerator.h @@ -24,6 +24,7 @@ public: u32 GetNumVerts() const { return m_base_index; } u32 GetIndexLen() const { return static_cast(m_index_buffer_current - m_base_index_ptr); } u32 GetRemainingIndices(OpcodeDecoder::Primitive primitive) const; + u16* GetIndexDataStart() const { return m_base_index_ptr; } private: u16* m_index_buffer_current = nullptr;