Skip to content

Export the interleaved and columnar Morton sorts, add a stride option - #327

Merged
slimbuck merged 1 commit into
playcanvas:mainfrom
slimbuck:morton
Sep 22, 2026
Merged

slimbuck merged 1 commit into
playcanvas:mainfrom
slimbuck:morton

Conversation

@slimbuck

Copy link
Copy Markdown
Member

Summary

  • Export sortMortonInterleaved and sortMortonColumns from the public API, alongside the existing DataTable adapter sortMortonOrder.
  • Give sortMortonInterleaved an optional stride (default 3) so it can sort any record whose first three words are xyz, such as a packed [x, y, z, w] GPU texture row viewed as floats.

@slimbuck
slimbuck requested a lite review from Copilot September 22, 2026 14:11
@slimbuck slimbuck self-assigned this Sep 22, 2026
@slimbuck slimbuck added the enhancement New feature or request label Sep 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@slimbuck
slimbuck marked this pull request as ready for review September 22, 2026 14:11
@slimbuck
slimbuck requested a review from a team September 22, 2026 14:11
@slimbuck
slimbuck merged commit c808e65 into playcanvas:main Sep 22, 2026
3 checks passed
@slimbuck
slimbuck deleted the morton branch September 22, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants