Skip to content

Commit

Permalink
Implements Vec3A directly (#102)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Jasper-Bekkers authored Dec 2, 2020
1 parent fd4c47e commit 0b71355
Show file tree
Hide file tree
Showing 5 changed files with 307 additions and 177 deletions.
3 changes: 2 additions & 1 deletion src/f32/vec3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,8 @@ impl From<Vec3A> for Vec3 {

#[cfg(vec3a_f32)]
{
v.0
let (x, y, z) = v.into();
Self { x, y, z }
}
}
}
Expand Down
Loading

0 comments on commit 0b71355

Please sign in to comment.