-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to build when using VULKAN_HPP_TYPESAFE_CONVERSION=0 #2036
Comments
Up to now, I can't repro this issue. |
@M2-TE As said above, I can't repro this issue.
Does that help (at least with that part of the list of error messages)? |
Adding that operator fixed the issue for |
Here is a short example to reproduce the issue. Same compiler setup as mentioned before. CMakeLists.txt: cmake_minimum_required(VERSION 3.28)
project(vk_test LANGUAGES CXX)
add_executable(${PROJECT_NAME} "main.cpp")
include(FetchContent)
FetchContent_Declare(vulkan-headers
GIT_REPOSITORY "https://github.com/KhronosGroup/Vulkan-Headers.git"
GIT_TAG "v1.4.303"
GIT_SHALLOW ON
OVERRIDE_FIND_PACKAGE
EXCLUDE_FROM_ALL
SYSTEM)
FetchContent_Declare(vulkan-hpp
GIT_REPOSITORY "https://github.com/KhronosGroup/Vulkan-Hpp.git"
GIT_TAG "v1.4.303"
GIT_SHALLOW ON
GIT_SUBMODULES ""
SOURCE_SUBDIR "disabled"
OVERRIDE_FIND_PACKAGE
EXCLUDE_FROM_ALL
SYSTEM)
FetchContent_MakeAvailable(vulkan-headers vulkan-hpp)
target_link_libraries(${PROJECT_NAME} PRIVATE Vulkan::Headers)
target_include_directories(${PROJECT_NAME} SYSTEM PRIVATE "${vulkan-hpp_SOURCE_DIR}")
target_compile_definitions(${PROJECT_NAME} PRIVATE "VULKAN_HPP_TYPESAFE_CONVERSION=0") main.cpp: #include <vulkan/vulkan.hpp>
int main() {} |
Using vulkan-hpp v1.4.303 alongside vulkan-headers v1.4.303 and disabling typesafe conversion via
VULKAN_HPP_TYPESAFE_CONVERSION=0
seems to break some comparison operators (among other things). Issue #2028 might be related to this, if it happens due to 64/32 bit shenanigansHere is an excerpt:
In case its of interest, my flags are the following:
Compiled with Clang 18.1.8 and c++23, similar errors with GCC 14.2.1
The text was updated successfully, but these errors were encountered: