Add a common boilerplate code via include and elim copy pasta

This commit is contained in:
Adam Treat 2023-09-21 13:00:10 -04:00 committed by cebtenzzre
parent 9e4f8b4acc
commit 77135a3bf5
25 changed files with 148 additions and 2668 deletions

View file

@ -429,7 +429,7 @@ if (LLAMA_KOMPUTE)
set(spv_file ${source}.spv)
add_custom_command(
OUTPUT ${spv_file}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${source}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${source} ${CMAKE_CURRENT_SOURCE_DIR}/kompute/common.comp
COMMAND ${glslc_executable} --target-env=vulkan1.2 -o ${spv_file} ${CMAKE_CURRENT_SOURCE_DIR}/${source}
COMMENT "Compiling ${source} to ${source}.spv"
)