Mercurial > games > semicongine
changeset 304:0c6e73fcc61f
Merge branch 'main' of github.com:saemideluxe/semicongine
author | Sam <sam@basx.dev> |
---|---|
date | Tue, 27 Jun 2023 00:17:55 +0700 |
parents | da0bd61abe91 (current diff) 1fa734fe4384 (diff) |
children | 44ecc0a01a9f |
files | |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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