ยง66's comparator with every key in place: layer, opaque before
transparent, pipeline and material, depth, explicit render order (R-8
follow-up a).
Key 3 outranks key 4, so a depth sort is within a pipeline/material
group: transparent items still go back-to-front, but only against siblings
that share a pipeline and a material. viewDepth is 0 until
sortRenderListByDepth writes it, so calling this before a depth
pass is equivalent to groupRenderListByPipeline.
Exported so a backend, a test, or a custom list can apply the same order
the verbs do.
ยง66's comparator with every key in place: layer, opaque before transparent, pipeline and material, depth, explicit render order (R-8 follow-up a).
Key 3 outranks key 4, so a depth sort is within a pipeline/material group: transparent items still go back-to-front, but only against siblings that share a pipeline and a material.
viewDepthis 0 until sortRenderListByDepth writes it, so calling this before a depth pass is equivalent to groupRenderListByPipeline.Exported so a backend, a test, or a custom list can apply the same order the verbs do.