Mercurial > games > semicongine
changeset 765:0cd881cfe7f9
Merge branch 'main' of github.com:saemideluxe/semicongine
author | Sam <sam@basx.dev> |
---|---|
date | Tue, 27 Jun 2023 00:17:55 +0700 |
parents | a4c757f5d17f (current diff) 0daf0d769fc1 (diff) |
children | 85878096e9f0 |
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