Skip to content

Commit 8014c86

Browse files
authored
add client param to rule utils.glsl2spv
1 parent f20c40b commit 8014c86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xmake/rules/utils/glsl2spv/xmake.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,13 @@ rule("utils.glsl2spv")
5858

5959
-- glsl to spv
6060
local targetenv = target:extraconf("rules", "utils.glsl2spv", "targetenv") or "vulkan1.0"
61+
local client = target:extraconf("rules", "utils.glsl2spv", "client") or "vulkan100"
6162
local outputdir = target:extraconf("rules", "utils.glsl2spv", "outputdir") or path.join(target:autogendir(), "rules", "utils", "glsl2spv")
6263
local spvfilepath = path.join(outputdir, path.filename(sourcefile_glsl) .. ".spv")
6364
batchcmds:show_progress(opt.progress, "${color.build.object}generating.glsl2spv %s", sourcefile_glsl)
6465
batchcmds:mkdir(outputdir)
6566
if glslangValidator then
66-
batchcmds:vrunv(glslangValidator.program, {"--target-env", targetenv, "-o", path(spvfilepath), path(sourcefile_glsl)})
67+
batchcmds:vrunv(glslangValidator.program, {"--target-env", targetenv, "--client", client, "-o", path(spvfilepath), path(sourcefile_glsl)})
6768
else
6869
batchcmds:vrunv(glslc.program, {"--target-env", targetenv, "-o", path(spvfilepath), path(sourcefile_glsl)})
6970
end

0 commit comments

Comments
 (0)