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

Implements Vec3A directly #102

Merged
merged 2 commits into from
Dec 2, 2020

Conversation

Jasper-Bekkers
Copy link
Contributor

Instead of forwarding calls to Vec3 and having Vec3A wrap Vec3, this implements all the functions in Vec3A manually. This is required for SPRIR-V support because rust can't have repr(simd) on a type that isn't a collection of it's basic types.

This fixes the issue we found in #85 where Vec3A would accidentally not get the repr(simd) applied to it, because it only got applied to the documentation type and not to the actual type we're using.

Instead of forwarding calls to Vec3 and having Vec3A wrap Vec3,
this implements all the functions in Vec3A manually. This is required
for SPRIR-V support because rust can't have repr(simd) on a type that
isn't a collection of it's basic types.
@Jasper-Bekkers Jasper-Bekkers changed the title Implements Vec3A directly instead. Implements Vec3A directly Dec 2, 2020
@bitshifter bitshifter merged commit 0b71355 into bitshifter:master Dec 2, 2020
@MarijnS95 MarijnS95 deleted the vec3a_no_fwd branch September 5, 2023 08:23
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

Successfully merging this pull request may close these issues.

None yet

2 participants