lullaby/systems/render/detail/sort_order.cc
// Calculates the sort order from an offset and a depth.
Calculates the sort order from an offset and a depth.
Calculates the sort order from an offset and a depth .
RenderSortOrder SortOrderFromOffset(RenderSortOrderOffset offset, int depth) {
  const int shift = lull::RenderSortOrder::kRootShift -
                    lull::RenderSortOrder::kNumBitsPerGroup * depth;
  return (static_cast<RenderSortOrder>(offset) << shift);
}
RenderSortOrder SortOrderFromOffset ( RenderSortOrderOffset offset , int depth ) { const int shift = lull :: RenderSortOrder :: kRootShift - lull :: RenderSortOrder :: kNumBitsPerGroup * depth ; return ( static_cast < RenderSortOrder > ( offset ) << shift ) ; }
Calculates the sort order from an offset and a depth.
Calculates the sort order from an offset and a depth .