Add a common boilerplate code via include and elim copy pasta
This commit is contained in:
parent
9e4f8b4acc
commit
77135a3bf5
25 changed files with 148 additions and 2668 deletions
|
@ -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"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue