File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -877,6 +877,8 @@ def compile_spirv(shader_paths_pair):
877
877
src_file_name = shader_paths_pair [0 ]
878
878
# path of template file used for codegen
879
879
src_file_fullpath = shader_paths_pair [1 ][0 ]
880
+ # args used for codegen
881
+ codegen_params = shader_paths_pair [1 ][1 ]
880
882
881
883
# Assume that generated files will have the same file extension as the
882
884
# source template file.
@@ -917,6 +919,7 @@ def compile_spirv(shader_paths_pair):
917
919
shutil .copyfile (cached_spv_out_path , spv_out_path )
918
920
return (spv_out_path , gen_out_path )
919
921
922
+ vk_version = codegen_params .get ("VK_VERSION" , "1.1" )
920
923
# Only proceed if a GLSL compiler was specified
921
924
if self .glslc_path is not None :
922
925
cmd_base = [
@@ -925,7 +928,7 @@ def compile_spirv(shader_paths_pair):
925
928
gen_out_path ,
926
929
"-o" ,
927
930
spv_out_path ,
928
- "--target-env=vulkan1.1" ,
931
+ "--target-env=vulkan{}" . format ( vk_version ) ,
929
932
"-Werror" ,
930
933
] + [
931
934
arg
You can’t perform that action at this time.
0 commit comments