Skip to content

Commit

Permalink
on notebook with vk sdk 1.4 shader creation error
Browse files Browse the repository at this point in the history
  • Loading branch information
leanid committed Jan 15, 2025
1 parent ab4c826 commit f6f60c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions 02-vulkan/08-vk-framebuffer-cmd-2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ add_executable(
platform_sdl3.hxx
render.cxx
render.hxx)
target_compile_definitions(08-vk-framebuffer-cmd-2 PRIVATE VK_NULL_HANDLE=nullptr)
target_compile_definitions(08-vk-framebuffer-cmd-2
PRIVATE VK_NULL_HANDLE=nullptr)
target_compile_features(08-vk-framebuffer-cmd-2 PRIVATE cxx_std_23)
target_include_directories(
08-vk-framebuffer-cmd-2
PRIVATE
$<$<PLATFORM_ID:Windows,Darwin,Linux>:${CMAKE_SOURCE_DIR}/support/cxx_lib/>
${CMAKE_SOURCE_DIR}/support/cxx_lib/
)
${CMAKE_SOURCE_DIR}/support/cxx_lib/)
target_link_libraries(
08-vk-framebuffer-cmd-2
PRIVATE om::io::read_file
Expand Down Expand Up @@ -57,6 +57,7 @@ foreach(shader_file ${shader_files})
COMMAND
Vulkan::glslangValidator -V
${CMAKE_CURRENT_SOURCE_DIR}/${shader_file} -o ${spirv_file}
VERBATIM
DEPENDS ${shader_file})

list(APPEND spirv_files ${spirv_file})
Expand Down

0 comments on commit f6f60c4

Please sign in to comment.