VertexLoaderManager: Clean up and slightly speed up with templates

This commit is contained in:
Robin Kertels
2022-09-19 01:14:49 +02:00
parent a31e36aeb7
commit a6c6ec012c
3 changed files with 110 additions and 80 deletions
+1 -1
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);