update script
This commit is contained in:
parent
906cf124f2
commit
8c88314717
14
build.sh
14
build.sh
@ -42,17 +42,3 @@ base_name=$(basename -- "$shader" .glsl)
|
||||
|
||||
$shader_compiler $shader_flags $shader_stage $shader "${shader_out}${base_name}.spv"
|
||||
|
||||
if [ -x "$(command -v ldc2)" ]; then d_compiler="ldc2";
|
||||
elif [ -x "$(command -v dmd)" ]; then d_compiler="dmd";
|
||||
else echo "Unable to find D compiler"; exit -1; fi;
|
||||
|
||||
codegen_src="${script_dir}/vulkan_codegen.d"
|
||||
codegen_out_name="${build}/vulkan_codegen"
|
||||
codegen_out="--of=${codegen_out_name}"
|
||||
codegen_flags="--d-version=VULKAN_CODEGEN"
|
||||
|
||||
$d_compiler $codegen_flags $codegen_src $codegen_out
|
||||
|
||||
$codegen_out_name $build/$base_name.spv
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user