# HG changeset patch # User Sam # Date 1687799875 -25200 # Node ID 0cd881cfe7f9ad636cfca88581be70f098b7f588 # Parent a4c757f5d17f4712e889c6a33cc0bda463d3d1f9# Parent 0daf0d769fc1951fa44e7d2f5ca0278b37565d07 Merge branch 'main' of github.com:saemideluxe/semicongine diff -r a4c757f5d17f -r 0cd881cfe7f9 src/semicongine/vulkan/shader.nim --- a/src/semicongine/vulkan/shader.nim Tue Jun 27 00:17:40 2023 +0700 +++ b/src/semicongine/vulkan/shader.nim Tue Jun 27 00:17:55 2023 +0700 @@ -60,8 +60,11 @@ echo "shader of type ", stage, ", entrypoint ", entrypoint for i, line in enumerate(shaderSource.splitlines()): echo " ", i + 1, " ", line - let command = &"{projectPath}/glslangValidator --entry-point {entrypoint} -V --stdin -S {stagename} -o {shaderfile}" - + var glslExe = "glslangValidator" + when defined(windows): + glslExe = glslExe & "." & ExeExt + let command = &"{projectPath.joinPath(glslExe)} --entry-point {entrypoint} -V --stdin -S {stagename} -o {shaderfile}" + echo "run: ", command discard staticExecChecked( command = command, input = shaderSource