Skip to content

Add LUT for fast generation of Morton Code #2

@mattcox

Description

@mattcox

At the moment, Morton Codes are generated on demand at run time. This isn't great in tight loops, for example inserting many thousands of triangles into a BVH. Instead, the Swift Macro system should be able to generate a LUT at build time representing the value types that the client wants. Then encoding a Morton code should use the LUT for fast "generation".

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions