Skip to content

Support glam SIMD types #83

@Netzwerk2

Description

@Netzwerk2

Some glam types have an SIMD counterpart. For example there's Vec3 which is scalar and Vec3A which uses SIMD.
Currently, glamour only implements converting to the "normal" (meaning no A suffix) glam types.
For types where only an SIMD implementation exists, such as Vec4, this doesn't matter as they are the "normal" type.
However I'd argue that a 3D vector is probably the most used of all the types, and therefore it should be possible to use the corresponding SIMD counterpart.

From my understanding of the underlying code, it seems like associated 3D vector type for the f32 Scalar implementation is also used for performing the calculations. This means that any operations using Vector3 in this crate would not be SIMD accelerated.
Again, this is how the code looks to me, I might be wrong :)
If I am wrong, it would however still be nice to support directly converting to Vec3A instead of needing to convert to Vec3 and then use glam's API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions