MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / render_list_prep

Function render_list_prep

StereoKitC/systems/render.cpp:1348–1364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1346///////////////////////////////////////////
1347
1348void render_list_prep(render_list_t list_id) {
1349 _render_list_t *list = &local.lists[list_id];
1350 if (list->prepped) return;
1351
1352 // Sort the render queue
1353 radix_sort7(&list->queue[0], list->queue.count);
1354
1355 // Make sure the material buffers are all up-to-date
1356 material_t curr = nullptr;
1357 for (int32_t i = 0; i < list->queue.count; i++) {
1358 if (curr == list->queue[i].material) continue;
1359 curr = list->queue[i].material;
1360 material_check_dirty(curr);
1361 }
1362
1363 list->prepped = true;
1364}
1365
1366///////////////////////////////////////////
1367

Callers 2

render_list_executeFunction · 0.85

Calls 2

radix_sort7Function · 0.85
material_check_dirtyFunction · 0.85

Tested by

no test coverage detected