Migrated from https://github.com/ziglang/zig/issues/7295
These are not to be confused with @Vector which is for SIMD.
These types are primarily intended for use when targeting SPIR-V but will of course work on all targets.
They should support swizzling, just like glsl. All the math builtins will support these types. Generally, there should be a bijection between glsl code and zig code with respect to 2d, 3d, and 4d vectors.
Related:
Migrated from https://github.com/ziglang/zig/issues/7295
These are not to be confused with `@Vector` which is for SIMD.
These types are primarily intended for use when targeting SPIR-V but will of course work on all targets.
They should support swizzling, just like glsl. All the math builtins will support these types. Generally, there should be a bijection between glsl code and zig code with respect to 2d, 3d, and 4d vectors.
Related:
* [add matrix to the language](https://github.com/ziglang/zig/issues/4960)
* [rename SIMD vectors](https://github.com/ziglang/zig/issues/7305)