VertexLoaderManager: Clean up and slightly speed up with templates

This commit is contained in:
Robin Kertels 2022-09-15 23:38:57 +02:00
parent a31e36aeb7
commit a6c6ec012c
No known key found for this signature in database
GPG key ID: 3824904F14D40757
3 changed files with 110 additions and 80 deletions

View file

@ -122,7 +122,7 @@ public:
// HACK
DataReader src{const_cast<u8*>(vertex_data), const_cast<u8*>(vertex_data) + size};
const u32 bytes =
VertexLoaderManager::RunVertices(vat, primitive, num_vertices, src, is_preprocess);
VertexLoaderManager::RunVertices<is_preprocess>(vat, primitive, num_vertices, src);
ASSERT(bytes == size);