-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,22 @@ foreach(SHADER ${SHADERS}) | |
get_filename_component(FILE_NAME ${SHADER} NAME) | ||
|
||
# Put the .spv files into the bin folder | ||
set(SPIRV_BIN ${CMAKE_CURRENT_BINARY_DIR}/${FILE_NAME}.spv) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Agrael1
Author
Contributor
|
||
set(SPIRV ${PROJECT_SOURCE_DIR}/bin/${FILE_NAME}.spv) | ||
|
||
|
||
add_custom_command( | ||
OUTPUT ${SPIRV} | ||
# Use the same file name and append .spv to the compiled shader | ||
COMMAND ${GLSL_VALIDATOR} -V ${CMAKE_CURRENT_SOURCE_DIR}/${SHADER} -o ${SPIRV} | ||
DEPENDS ${SHADER} | ||
) | ||
add_custom_command( | ||
OUTPUT ${SPIRV_BIN} | ||
# Use the same file name and append .spv to the compiled shader | ||
COMMAND ${GLSL_VALIDATOR} -V ${CMAKE_CURRENT_SOURCE_DIR}/${SHADER} -o ${SPIRV_BIN} | ||
DEPENDS ${SHADER} | ||
) | ||
|
||
list(APPEND SPIRV_FILES ${SPIRV}) | ||
endforeach() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why are those changes in the Cmake script needed? They seem unrelated to the subject of this pull request. Is there something wrong with your development environment that makes it not working for you?