Fixed vulkan version check wording and GPU validation
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
This commit is contained in:
parent
0648fefa49
commit
e028b1f838
1 changed files with 2 additions and 2 deletions
|
|
@ -108,7 +108,7 @@ function(check_vulkan_version)
|
|||
endif()
|
||||
|
||||
if(${VULKAN_DRIVER_MINOR_VERSION} EQUAL ${VULKAN_HEADER_MINOR_VERSION})
|
||||
message(WARNING "Your GPU driver does not support Vulkan > ${VULKAN_DRIVER_VERSION}, but you try to use Vulkan Header ${VULKAN_HEADER_VERSION}. At least your driver supports the same minor version (${VULKAN_DRIVER_MINOR_VERSION}), so this should be fine but keep it in mind if encounter some strange behavior.")
|
||||
message(WARNING "Your GPU driver does not support Vulkan > ${VULKAN_DRIVER_VERSION}, but you try to use Vulkan Header ${VULKAN_HEADER_VERSION}. At least your driver supports the same minor version (${VULKAN_DRIVER_MINOR_VERSION}), so this should be fine but keep it in mind in case you encounter any strange behavior.")
|
||||
set(VALID_GPU ${GPU})
|
||||
set(VALID_VULKAN_VERSION ${VULKAN_DRIVER_VERSION})
|
||||
break()
|
||||
|
|
@ -122,7 +122,7 @@ function(check_vulkan_version)
|
|||
endif()
|
||||
endforeach()
|
||||
|
||||
if(${GPU} STREQUAL "")
|
||||
if(${VALID_GPU} STREQUAL "")
|
||||
message(FATAL_ERROR "None of your GPUs supports Vulkan Header ${VULKAN_HEADER_VERSION}. Please try updating your driver, or downgrade Vulkan header.")
|
||||
else()
|
||||
message("Valid GPU (${VALID_GPU}) for Vulkan header version ${VULKAN_HEADER_VERSION} found. ${VALID_GPU} supports up to Vulkan ${VALID_VULKAN_VERSION}.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue