≈ the.bay.news

@Vector, SIMD, and SPIR-V

Ziggit
@Vector, SIMD, and SPIR-V
There’s something that’s been bugging me about @Vector. It’s unfortunate that both the math vector and the simd vector have reasonable claim on the name ‘vector’. I hope zig can serve to clarify that distinction. In my code, I do a lot of computations with math vectors and simd vectors. There is a very fundamental construct in my repo, as follows (simplified slightly for this post): pub const Width = enum(u8) { scalar = 0, _, fn lanes(comptime width: Width) comptime_int { ...

0 comments

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

No comments yet.