# HG changeset patch # User Sam # Date 1687710379 25200 # Node ID 1fa734fe438479284bf1d783035188972262fdde # Parent 05233dd6020549e43a77337a7821de2e2d1d8895 fix: wrong path for glsl on windows diff -r 05233dd60205 -r 1fa734fe4384 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