Skip to content

Commit 5e7b4f4

Browse files
committed
Update shader compilation command to use absolute output path
- Adjust `add_custom_command` in CMake to specify an absolute output path for `slang.spv`.
1 parent 7105e00 commit 5e7b4f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

attachments/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ function (add_slang_shader_target TARGET)
9494
)
9595
add_custom_command (
9696
OUTPUT ${SHADERS_DIR}/slang.spv
97-
COMMAND ${SLANGC_EXECUTABLE} ${SHADER_SOURCES} -target spirv -profile spirv_1_4 -emit-spirv-directly -fvk-use-entrypoint-name ${ENTRY_POINTS} -o slang.spv
98-
WORKING_DIRECTORY ${SHADERS_DIR}
97+
COMMAND ${SLANGC_EXECUTABLE} ${SHADER_SOURCES} -target spirv -profile spirv_1_4 -emit-spirv-directly -fvk-use-entrypoint-name ${ENTRY_POINTS} -o ${CMAKE_CURRENT_LIST_DIR}/${SHADERS_DIR}/slang.spv
9998
DEPENDS ${SHADERS_DIR} ${SHADER_SOURCES}
10099
COMMENT "Compiling Slang Shaders"
101100
VERBATIM

0 commit comments

Comments
 (0)