LWJGL Forum

Programming => Vulkan => Topic started by: HaDriel on August 10, 2018, 08:07:31

Title: SPIR-V tools ?
Post by: HaDriel on August 10, 2018, 08:07:31
Hello !

I've been trying Vulkan lately, and one thing i found maybe missing was the lack of SPIR-V compilation tools. I Googled a bit but I didn't find anything really convincing out in the wild...

First, if i'm right, SPIR-V tools are not dependent of the Vulkan SDK. Google is developping shaderc, a project containing a lib and some binaries to compile GLSL and HLSL shaders into SPIR-V. I also found a cool github project spirvcrossj something like that, but i'm suprised that LWJGL3 does'nt sound like having anything related to SPIR-V (note that I didn't check the LWJGL documentation, and a RTFM would be understandable if there is one actually).
In case of real lack of SPIR-V compiler in code, what are the reasons of such decision ?

Thanks for your time.
Title: Re: SPIR-V tools ?
Post by: spasi on August 10, 2018, 12:56:06
See the Bindings project (https://github.com/LWJGL/lwjgl3/projects/1) on Github. SPIR-V/glslang/shaderc bindings are high priority and will be added in the near future.
Title: Re: SPIR-V tools ?
Post by: HaDriel on August 10, 2018, 13:23:41
Hell yeah ! ! ! You're always on the point :D.
Since I can't integrate them right now i'll continue developping the Shader framework without any runtime Shader compilation. Great to see this and sorry for not checking here.