Add ModelLoader (not tested) add TheChef for cooking
This commit is contained in:
@@ -96,20 +96,19 @@ target_compile_definitions(destrum
|
||||
GLM_ENABLE_EXPERIMENTAL
|
||||
)
|
||||
|
||||
set(DESTRUM_SHADER_SRC "${CMAKE_CURRENT_LIST_DIR}/assets_src/shaders")
|
||||
set(DESTRUM_SHADER_OUT "${CMAKE_CURRENT_LIST_DIR}/assets_runtime/shaders")
|
||||
set(ASSETS_SRC_DIR "${CMAKE_CURRENT_LIST_DIR}/assets_src")
|
||||
set(ASSETS_RUNTIME_DIR "${CMAKE_CURRENT_LIST_DIR}/assets_runtime")
|
||||
|
||||
include(../cmake/compile_shaders.cmake)
|
||||
add_custom_target(cook_assets_clean
|
||||
COMMAND TheChef
|
||||
--input "${ASSETS_SRC_DIR}"
|
||||
--output "${ASSETS_RUNTIME_DIR}"
|
||||
--clean
|
||||
)
|
||||
|
||||
compile_glsl_to_spv(destrum "${DESTRUM_SHADER_SRC}" "${DESTRUM_SHADER_OUT}" DESTRUM_SPV)
|
||||
add_dependencies(destrum destrum_shaders)
|
||||
#
|
||||
#include(../cmake/compile_slang_shaders.cmake)
|
||||
#
|
||||
#compile_slang_shaders(
|
||||
# TARGET compile_shaders
|
||||
# SRC_DIR "${CMAKE_SOURCE_DIR}/destrum/assets_src/shaders"
|
||||
# OUT_DIR "${CMAKE_SOURCE_DIR}/destrum/assets_runtime/shaders"
|
||||
# EXTRA_ARGS -O3
|
||||
# ALL
|
||||
#)
|
||||
add_custom_target(cook_assets ALL
|
||||
COMMAND TheChef
|
||||
--input "${ASSETS_SRC_DIR}"
|
||||
--output "${ASSETS_RUNTIME_DIR}"
|
||||
DEPENDS TheChef
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user