Skip to content

Consider switching from vek to glam #179

Open
@LegNeato

Description

@LegNeato

I can't find any backstory for using vek over another lib.

rust-gpu uses glam and rust-cuda uses vek. As far as I can see, there is no real reason for it being different. It would be nice to use the same so we don't have to do import cfg() dance when sharing code between vulkan and cuda.

cust / the host side has a feature for impl_glam, but it looks on the GPU side we just support vek in cuda std?

Note glam has this feature:

  • cuda - forces glam types to match expected [cuda alignment]

Advantages for glam:

  • popular
  • unopinionated, doesn't really define anything for you except column-major matrix order
  • one of the fastest vector libs (for CPU), the dev also runs the mathbench to compare performance against other crates
  • has no_std support via libm (which vek does too)
  • glam also has support for the rkyv serializer

(thanks to @Firestar99 for the list).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions