Add github CI
This commit is contained in:
@@ -5,9 +5,11 @@ function(compile_glsl_aux shader_stage shader_name glsl_filename output)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${output}
|
||||
COMMAND echo "{ \"${shader_name}\", {" >> ${output}
|
||||
COMMAND Vulkan::glslc -mfmt=num -fshader-stage=${shader_stage} -D${shader_stage_upper}_SHADER ${in_file} -o - >> ${output}
|
||||
COMMAND echo "}}," >> ${output}
|
||||
COMMAND echo "{ \"${shader_name}\", {" >> ${output}
|
||||
COMMAND echo "#include \"${shader_name}.spv\"" >> ${output}
|
||||
COMMAND echo "}}," >> ${output}
|
||||
|
||||
COMMAND Vulkan::glslangValidator -V -S ${shader_stage} -D${shader_stage_upper}_SHADER ${in_file} -x -o ${shader_name}.spv
|
||||
DEPENDS ${glsl_filename}
|
||||
VERBATIM
|
||||
APPEND
|
||||
|
||||
Reference in New Issue
Block a user