Zig is getting support for vec2, vec3, vec4 types to the language

Just wanted to share this :star_struck: add vec2, vec3, vec4 types to the language #32032

7 Likes

Marked “urgent” even. I wonder why?

2 Likes

Yeah can’t wait to see how this will pan out :slight_smile:

Urgent just means triage

Would any graphics programmer be willing to go more into detail about what SPIR-V backend + glsl means within the Zig ecosystem. I understand one is an Intermediate Representation and I understand the second is a shader language (?)

Does zig want to allow shader code to be run on GPUs to be entirely written in Zig?

4 Likes

not a graphics programmer, but I’m pretty sure this is one of zig’s ambition, to be usable as a shading language at least there’s an ofmt=spirv option when emiting code.

1 Like