[Imstk-developers] How to compile shader code in CMake?

Milef, Nicholas Boris milefn at rpi.edu
Wed Aug 9 16:09:56 EDT 2017


I need to compile the Vulkan shaders (from GLSL to SPIR-V) and I don't really want to add the SPIR-V shaders in the repo because they're binary (although they aren't very large).

>From command prompt, I run this (included with VulkanSDK):
glslangvalidator -V mesh_frag.frag -o mesh_frag.spv

Any ideas on how to do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/imstk-developers/attachments/20170809/bf6874bb/attachment.html>


More information about the Imstk-developers mailing list