Skip to content
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

static_assert( VK_HEADER_VERSION == 38 , "Wrong VK_HEADER_VERSION!" ); #61

Closed
ioquatix opened this issue Jan 30, 2017 · 2 comments
Closed

Comments

@ioquatix
Copy link
Contributor

I'm on Linux with the latest NVidia drivers, and VK_HEADER_VERSION is 39.

Additionally, I get the following problems:

vulkan.hpp:44:1: error: static_assert failed "Wrong VK_HEADER_VERSION!"
static_assert( VK_HEADER_VERSION ==  38 , "Wrong VK_HEADER_VERSION!" );
^              ~~~~~~~~~~~~~~~~~~~~~~~~
vulkan.hpp:16762:3: error: static_assert failed "struct and wrapper have different size!"
  static_assert( sizeof( ObjectTableIndexBufferEntryNVX ) == sizeof( VkObjectTableIndexBufferEntryNVX ), "struct and wrapper have different size!" );
  ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vulkan.hpp:16762:3: error: static_assert failed "struct and wrapper have different size!"
  static_assert( sizeof( ObjectTableIndexBufferEntryNVX ) == sizeof( VkObjectTableIndexBufferEntryNVX ), "struct and wrapper have different size!" );
  ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vulkan.hpp:44:1: error: static_assert failed "Wrong VK_HEADER_VERSION!"
static_assert( VK_HEADER_VERSION ==  38 , "Wrong VK_HEADER_VERSION!" );
^              ~~~~~~~~~~~~~~~~~~~~~~~~
vulkan.hpp:16762:3: error: static_assert failed "struct and wrapper have different size!"
  static_assert( sizeof( ObjectTableIndexBufferEntryNVX ) == sizeof( VkObjectTableIndexBufferEntryNVX ), "struct and wrapper have different size!" );
@mtavenrath
Copy link
Contributor

If you do generate vulkan.hpp on your local system you've to pass a vk.xml matching your vulkan.h header version or use the version provided by the LunarG SDK.

Closing as it's not a Vulkan-Hpp issue.

@ioquatix
Copy link
Contributor Author

Okay, so the problem here is that using the version in git isn't advisable. Where do you find vk.xml on your local system?

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants