Skip to content

vk-bootstrap does not compile #8058

@jube

Description

@jube

Xmake Version

3.0.2

Operating System Version and Architecture

Debian 13

Describe Bug

Updating to vk-bootstrap 1.4.325 does not compile. It needs a VkPhysicalDeviceShaderBfloat16FeaturesKHR structure that is not in the vulkan-headers package. This structure appeared in the VK_KHR_shader_bfloat16 extension which was added to vulkan 1.4.311. The latest vulkan-headers package is 1.4.309. The commit that introduced this dependency dates from 1st september and only appears in version 1.4.325 of vk-bootstrap.

Expected Behavior

vk-bootstrap is compiling. Updating vulkan-headers to the latest version may be enough. And adding vk-bootstrap to the (long) list of vulkan packages that needs to be updated at the same time may be necessary to prevent similar errors in the future.

Project Configuration

Any project with vk-bootstrap.

Additional Information and Error Logs

note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> vk-bootstrap v1.4.325 [from:gamedevframework2, license:MIT]
please input: y (y/n/m)

  => download https://github.com/charles-lunarg/vk-bootstrap/archive/refs/tags/v1.4.325.tar.gz .. failed
  => install vk-bootstrap v1.4.325 .. failed

[ 23%]: cache compiling.release src/VkBootstrap.cpp
error: src/VkBootstrapFeatureChain.h:138:95: error: ‘VkPhysicalDeviceShaderBfloat16FeaturesKHR’ has not been declared
  138 | void compare_VkPhysicalDeviceShaderBfloat16FeaturesKHR(std::vector<std::string> & error_list, VkPhysicalDeviceShaderBfloat16FeaturesKHR const& supported, VkPhysicalDeviceShaderBfloat16FeaturesKHR const& requested);
      |                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/VkBootstrapFeatureChain.h:138:155: error: ‘VkPhysicalDeviceShaderBfloat16FeaturesKHR’ has not been declared
  138 | void compare_VkPhysicalDeviceShaderBfloat16FeaturesKHR(std::vector<std::string> & error_list, VkPhysicalDeviceShaderBfloat16FeaturesKHR const& supported, VkPhysicalDeviceShaderBfloat16FeaturesKHR const& requested);
      |                                                                                                                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/VkBootstrapFeatureChain.h:139:6: error: variable or field ‘merge_VkPhysicalDeviceShaderBfloat16FeaturesKHR’ declared void
  139 | void merge_VkPhysicalDeviceShaderBfloat16FeaturesKHR(VkPhysicalDeviceShaderBfloat16FeaturesKHR & current, VkPhysicalDeviceShaderBfloat16FeaturesKHR const& merge_in);
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/VkBootstrapFeatureChain.h:139:54: error: ‘VkPhysicalDeviceShaderBfloat16FeaturesKHR’ was not declared in this scope; did you mean ‘VkPhysicalDeviceShaderFloat16Int8FeaturesKHR’?
  139 | void merge_VkPhysicalDeviceShaderBfloat16FeaturesKHR(VkPhysicalDeviceShaderBfloat16FeaturesKHR & current, VkPhysicalDeviceShaderBfloat16FeaturesKHR const& merge_in);
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                      VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
src/VkBootstrapFeatureChain.h:139:98: error: ‘current’ was not declared in this scope
  139 | void merge_VkPhysicalDeviceShaderBfloat16FeaturesKHR(VkPhysicalDeviceShaderBfloat16FeaturesKHR & current, VkPhysicalDeviceShaderBfloat16FeaturesKHR const& merge_in);
      |                                                                                                  ^~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions