Hello Guest

SPIR-V tools ?

  • 3 Replies
SPIR-V tools ?
« 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.


Offline spasi

  • *****
  • 2258
    • WebHotelier
Re: SPIR-V tools ?
« Reply #1 on: August 10, 2018, 12:56:06 »
See the Bindings project on Github. SPIR-V/glslang/shaderc bindings are high priority and will be added in the near future.

Re: SPIR-V tools ?
« Reply #2 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.

Re: SPIR-V tools ?
« Reply #3 on: August 28, 2018, 07:50:52 »
Dynamic GLSL compilation and SPIRV code generation is very important for LWJGL, in my opinion.

We need the ability to provide a text string, compile it to .spv and load shader code, all dynamically.