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

Function render_sort_id

StereoKitC/systems/render.cpp:307–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305///////////////////////////////////////////
306
307inline uint64_t render_sort_id(material_t material, mesh_t mesh) {
308 return ((uint64_t)(material->alpha_mode*1000 + material->queue_offset) << 32) | (material->header.index << 16) | mesh->header.index;
309}
310inline uint64_t render_sort_id_from_queue(int32_t queue_position) {
311 return (uint64_t)(queue_position) << 32;
312}

Callers 2

render_add_meshFunction · 0.85
render_add_model_matFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected