feat: made sure shaders are always recompiled when necesairy
This commit is contained in:
@@ -20,6 +20,7 @@ foreach(GLSL ${GLSL_SOURCE_FILES})
|
|||||||
COMMAND glslc ${GLSL} -g -o ${SPV_FILE}
|
COMMAND glslc ${GLSL} -g -o ${SPV_FILE}
|
||||||
DEPENDS ${GLSL}
|
DEPENDS ${GLSL}
|
||||||
COMMENT "Rebuilding ${SPV_FILE}")
|
COMMENT "Rebuilding ${SPV_FILE}")
|
||||||
|
set_property(SOURCE ${GLSL} APPEND PROPERTY OBJECT_DEPENDS ${SPV_FILE})
|
||||||
list(APPEND SPIRV_BINARY_KERNELS ${SPV_FILE})
|
list(APPEND SPIRV_BINARY_KERNELS ${SPV_FILE})
|
||||||
endforeach()
|
endforeach()
|
||||||
add_custom_target(shaders DEPENDS ${SPIRV_BINARY_KERNELS})
|
add_custom_target(shaders DEPENDS ${SPIRV_BINARY_KERNELS})
|
||||||
|
|||||||
Reference in New Issue
Block a user