OpcodeDecoding: Get vertex size from the loader

This commit is contained in:
Robin Kertels 2022-09-17 14:19:13 +02:00
parent a6c6ec012c
commit 2db74e7f21
No known key found for this signature in database
GPG key ID: 3824904F14D40757
5 changed files with 29 additions and 2 deletions

View file

@ -228,6 +228,12 @@ public:
return g_main_cp_state;
}
OPCODE_CALLBACK(u32 GetVertexSize(u8 vat))
{
VertexLoaderBase* loader = VertexLoaderManager::RefreshLoader<is_preprocess>(vat);
return loader->m_vertex_size;
}
u32 m_cycles = 0;
bool m_in_display_list = false;
};