≈ the.bay.news

Compiler bug, access violation when passing @Vector wraped inside struct

Ziggit
Compiler bug, access violation when passing @Vector wraped inside struct
I have he following structs in my math library pub const F32x4 = @Vector(4, f32); pub const Quat = extern struct { xyzw: F32x4 = .{ 0.0, 0.0, 0.0, 1.0 }, }; pub fn matRotation_1(q: Quat) Mat4 // q is passed via stack pub fn matRotation_2(q: F32x4) Mat4 // q is passed via xmm0 as it should pub fn matTRS_1(pos: F32x4, rot: Quat, s: F32x4) Mat4; // crashes on access violation pub fn matTRS_2(pos: F32x4, rot: F32x4, s: F32x4) Mat4; // works fine the issue is when using matTRS_1 I get an acces...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.