Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVX2 on glm::vec4 and not on glm::vec3 #1296

Open
Snouf-ID opened this issue May 21, 2024 · 0 comments
Open

AVX2 on glm::vec4 and not on glm::vec3 #1296

Snouf-ID opened this issue May 21, 2024 · 0 comments

Comments

@Snouf-ID
Copy link

Hello.

Is it possible to have the vec4 and mat4 in simd with AVX2 and keep the vec3 and mat3 without simd?
If so, can we still construct a vec4 with a vec3 + a float?
Is it possible to have a vec3 simd and a not simd in the same project?

I ask this question because adding GLM_FORCE_INTRINSICS and GLM_FORCE_DEFAULT_ALIGNED_GENTYPES to have the AVX2 optimizations gives me vec3s of size 4, which is annoying for my vertex buffer (table of vec3).

I can't find many examples of good simd practices, especially since the simd_vec4 type is removed.

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant