Type Alias rafx::render_feature_prepare_job_predule::SubmitNodeSortKey
source · pub type SubmitNodeSortKey = u32;
Expand description
A generic key usable by the SubmitNodeSortFunction
for the purpose of sorting the collection of
RenderFeatureSubmitNode
in a particular ViewPhase
. This can be used to minimize state changes
in the rendering pipeline, e.g. by setting the bits of the key so that higher bits represent more
expensive state changes like shaders and lower bits represent cheaper state changes like uniforms.
Example: https://web.archive.org/web/20210110113523/https://realtimecollisiondetection.net/blog/?p=86