Revert compileshaders.cmake to use SPIRV target = vulkan1.2 for macOS / MoltenVK

This commit is contained in:
Stephen Saunders 2023-03-05 08:31:25 -05:00
parent b1c2cdbec8
commit 7b9d36c1d1
2 changed files with 2 additions and 7 deletions

View file

@ -494,7 +494,7 @@ Recommended in this case is `cmake-vs2019-64bit.bat` or `cmake-vs2019-64bit-no-f
You don't need FFmpeg to be installed. You can turn it off by adding -DFFMPEG=OFF and -DBINKDEC=ON to the CMake options. For debug builds FFmpeg is enabled by default because the bundled libbinkdec is slow during development if compiled for Debug mode. For release, retail and universal builds FFmpeg is disabled and libbinkdec is enabled by default.
The Vulkan SDK must be installed and can be obtained from https://vulkan.lunarg.com/sdk/home#mac
The Vulkan SDK 1.3.231.1 or later must be installed and can be obtained from https://vulkan.lunarg.com/sdk/home#mac
3. Generate the Makefiles using CMake:

View file

@ -106,12 +106,7 @@ function(compile_shaders)
endif()
if (NOT params_CFLAGS)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# SRS - MoltenVK currently supports vulkan 1.1 (1.2 coming in next SDK release)
set(CFLAGS "$<IF:$<CONFIG:Debug>,-Zi,> -fspv-target-env=vulkan1.1 -O3 -WX -Zpr")
else()
set(CFLAGS "$<IF:$<CONFIG:Debug>,-Zi,> -fspv-target-env=vulkan1.2 -O3 -WX -Zpr")
endif()
set(CFLAGS "$<IF:$<CONFIG:Debug>,-Zi,> -fspv-target-env=vulkan1.2 -O3 -WX -Zpr")
else()
set(CFLAGS ${params_CFLAGS})
endif()