# HG changeset patch # User Sam # Date 1687710379 25200 # Node ID 0daf0d769fc1951fa44e7d2f5ca0278b37565d07 # Parent 916939358fefeac3515e452973d3267cdd9e186a fix: wrong path for glsl on windows diff -r 916939358fef -r 0daf0d769fc1 src/semicongine/vulkan/shader.nim --- a/src/semicongine/vulkan/shader.nim Sun Jun 25 19:20:34 2023 +0700 +++ b/src/semicongine/vulkan/shader.nim Sun Jun 25 09:26:19 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