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

1.0.49 version of vk.xml causes build errors with generated vulkan.hpp #105

Closed
mark-lunarg opened this issue May 15, 2017 · 3 comments
Closed
Assignees
Labels

Comments

@mark-lunarg
Copy link

The enhanced-mode body for PhysicalDevice::getSurfaceCapabilities2KHR() appears to be incorrect and causes the following build errors:

1  VULKAN_HPP_INLINE Result PhysicalDevice::getSurfaceCapabilities2KHR( const PhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo, SurfaceCapabilities2KHR* pSurfaceCapabilities ) const
2    {
3      return static_cast<Result>( vkGetPhysicalDeviceSurfaceCapabilities2KHR( m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR*>( pSurfaceInfo ), reinterpret_cast<VkSurfaceCapabilities2KHR*>( pSurfaceCapabilities ) ) );
4    }
5  #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6    VULKAN_HPP_INLINE Result PhysicalDevice::getSurfaceCapabilities2KHR( const PhysicalDeviceSurfaceInfo2KHR & surfaceInfo ) const
7    {
8      Result result = static_cast<Result>( vkGetPhysicalDeviceSurfaceCapabilities2KHR( m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR*>( &surfaceInfo ), reinterpret_cast<VkSurfaceCapabilities2KHR*>( &surfaceCapabilities ) ) );
9      return createResultValue( result, surfaceCapabilities, "vk::PhysicalDevice::getSurfaceCapabilities2KHR" );
10   }
11 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/

Line 8: 'surfaceCapabilities': undeclared identifier
Line 9: 'surfaceCapabilities': undeclared identifier

@mtavenrath mtavenrath changed the title 1.0.48 version of vk.xml causes build errors with generated vulkan.hpp 1.0.49 version of vk.xml causes build errors with generated vulkan.hpp May 16, 2017
@mtavenrath
Copy link
Contributor

@mark-lunarg Mark, getSurfaceCapabilities2KHR does not have any success codes, but only error codes which is unlike a desired behavior and should be fixed in the vk.xml. If we'd be able to generate this function it'd still be useless since it'll always throw an exception unless there's at least one success code.

We'll replace the assertion we have in the generator code by an exception to have validation coverage here so that this type of bug will be discovered more easy in the future.

Closing as this is not a Vulkan-Hpp issue.

@mark-lunarg
Copy link
Author

@mtavenrath, Thanks! If you haven't already opened an issue on Vulkan/Vulkan, lemme know and I'll see about doing so.

@mtavenrath
Copy link
Contributor

@mark-lunarg I haven't openend an issue yet.

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

No branches or pull requests

3 participants