remove indirection in vertex builder

This commit is contained in:
veclavtalica
2025-01-17 22:48:35 +03:00
parent 40aef0a1f9
commit 8a5d639f95
8 changed files with 53 additions and 85 deletions

View File

@ -125,9 +125,11 @@ void finally_draw_billboard_batch(struct MeshBatch const *batch,
.v3 = vec3_add(billboard.position, a),
};
push_to_vertex_buffer_builder(&builder, &payload, sizeof (payload));
((struct ElementIndexedBillboard *)builder.base)[i] = payload;
}
finish_vertex_builder(&builder);
/* commit to drawing */
DeferredCommandDraw command = {0};