News for hackers. Stuff that matters.
Re:RLSL: a Rust to SPIR-V Compiler by kbumsik on Monday October 21, 2019 @06:48PM (#21318416)
Call me dumb but I'm always confused with SPIR-V. Does it have any relationship with Vulkan or OpenGL?
Re:RLSL: a Rust to SPIR-V Compiler by pdpi on Monday October 21, 2019 @08:34PM (#21319166)
Graphics programming is fundamentally a form of client/server programming.

Your (usually) c++ is the client, shaders are the server, OpenGL/Vulkan/Direct3D are basically your client libraries to talk to the server.

Your OpenGL driver has a compiler in it that JIT compiles GLSL into into shader programs your GPU can run. In this world, SPIR-V is sort of like JVM/WASM bytecode — a compilation target for shader languages, that’s a bit nicer for drivers to work with.

Re:RLSL: a Rust to SPIR-V Compiler by kbumsik on Tuesday October 22, 2019 @04:54AM (#21321503)
> Graphics programming is fundamentally a form of client/server programming.

Thanks, in that way it is a lot easier to understand. So do you mean GLSL would be compiled into SPIR-V?

Re:RLSL: a Rust to SPIR-V Compiler by pdpi on Tuesday October 22, 2019 @05:33AM (#21321731)
Re:RLSL: a Rust to SPIR-V Compiler by simcop2387 on Monday October 21, 2019 @07:10PM (#21318609)
Yes. Its the underlying "language" of shader programs in vulkan. OpenGL 4.6 adds support for loading spirv and a few other things like that.