# HG changeset patch
# User Sam <sam@basx.dev>
# Date 1687799875 -25200
# Node ID 0c6e73fcc61f4ff7a9cc1bdff6ad25a49bc5fc62
# Parent  da0bd61abe9167a942cc77162e804283bf53d79a# Parent  1fa734fe438479284bf1d783035188972262fdde
Merge branch 'main' of github.com:saemideluxe/semicongine

diff -r da0bd61abe91 -r 0c6e73fcc61f 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