Commit Graph

416 Commits

Author SHA1 Message Date
Charles Giessen
e0e6123d20 Use depends attr in xml to generate correct macro defines
The vulkan spec updated to include depends="" attributes in the requires blocks of extensions.
The autogen needed to be updated to use that as that is the correct mechanism to ascertain which
functions require more than one extension to be present. This also required refactoring the logic
to respect that.
2024-11-17 16:26:34 -07:00
DomNomNomVR
e64f1311ce Make double size check more valid 2024-11-14 09:44:51 -07:00
charles-lunarg
03ebcdbc76 Update to latest Vulkan-Headers 2024-11-05 10:14:14 -06:00
charles-lunarg
dc40c04232 Update to latest Vulkan-Headers 2024-10-29 08:56:11 -06:00
Charles Giessen
9e826bbf2b Don't run ci twice on PR's
Prevents ci from being run on branches that have a PR created for them.
This doesn't prevent ci from running on PR's from forks.
2024-10-22 11:55:23 -06:00
Charles Giessen
7fcd5d04c4 Add AMDX functions to header version workaround list
Header update 1.3.298 changed the definition of functions. Should have caught
this during the PR review, as well better late than never.
2024-10-22 11:50:58 -06:00
charles-lunarg
01018f5ba8 Update to latest Vulkan-Headers 2024-10-22 10:12:03 -06:00
charles-lunarg
e3d07c49cb Update to latest Vulkan-Headers 2024-10-15 08:40:28 -06:00
Charles Giessen
1099d8dd5c Use token in run_autogen.yml to enable CI being run
Setting up tokens is necessary to allow github to run CI on pull requests
made automatically - this wasn't the case when the autogen code was added
but is probably a good thing for security reasons.
2024-10-08 09:26:48 -06:00
charles-lunarg
dff929c3b1 Update to latest Vulkan-Headers 2024-10-08 09:19:31 -06:00
charles-lunarg
f85a1f1e28 Update to latest Vulkan-Headers 2024-10-01 08:54:14 -06:00
Klark007
c710f245ff Fix Class typo in getting stared 2024-09-14 09:59:12 -06:00
dependabot[bot]
caadcc5ff6 Bump peter-evans/create-pull-request from 6 to 7
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 6 to 7.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v6...v7)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-09 09:06:27 -06:00
charles-lunarg
d868cadf74 Update to latest Vulkan-Headers 2024-09-04 15:13:53 -06:00
Chris Dalton
30a13b23f6 Fix enable_extension_features_if_present on Vulkan 1.0
This method should call vkGetPhysicalDeviceFeatures2KHR on Vulkan 1.0.
2024-08-27 12:33:34 -06:00
charles-lunarg
5e7be28b43 Update to latest Vulkan-Headers 2024-08-27 08:32:34 -06:00
charles-lunarg
5ab30256e8 Update to latest Vulkan-Headers 2024-08-19 19:38:17 -06:00
Charles Giessen
1d77e652fa Make PhysicalDeviceSelector::set_require_featurs_1_X const
Make the API take the struct by const reference by creating a local
variable that copies the struct, allowing the sType to be set correctly.

The need to set the sType is due to a deficiency in the first version
of these functions, which allows users to not set the sType. Making
users set the sType is difficult because it breaks user code without
warning upon updating the version of vk-bootstrap used.
2024-08-04 14:41:05 -05:00
charles-lunarg
217f5a9101 Update to latest Vulkan-Headers 2024-07-29 19:48:55 -05:00
charles-lunarg
f89af55363 Update to latest Vulkan-Headers 2024-07-22 19:53:17 -05:00
charles-lunarg
5836b6cb94 Update to latest Vulkan-Headers 2024-07-16 01:01:49 -05:00
charles-lunarg
b420029db1 Update to latest Vulkan-Headers 2024-07-02 11:57:40 -05:00
Charles Giessen
1f07cf1434 Add .cache to gitignore for clangd 2024-07-01 10:58:03 -05:00
Charles Giessen
96688de170 Add vulkan-hpp tests
Since the API can accept vulkan-hpp types in a few places, it is good to have
tests for those places. While the current test suite isn't exhaustive, it is
enough to get the ball rolling.

This PR also refactors some of the 'setup' logic for the tests into a separate
file so that the hpp tests can make use of them.
2024-07-01 09:54:16 -05:00
Charles Giessen
42cef2cd14 static_cast the sType to allow Vulkan-Hpp types to work
The add_required_extensions_features function is templated, allowing both
vulkan.h and vulkan-hpp types to be passed in. Due to recent changes in
the generic features struct code, this stopped working. By casting the
sType explicitely using static_cast, it restores usage of vulkan-hpp types.
2024-07-01 09:54:16 -05:00
charles-lunarg
500c17f5d0 Update to latest Vulkan-Headers 2024-06-18 10:16:23 -06:00
charles-lunarg
64fa0ebf56 Update to latest Vulkan-Headers 2024-06-13 10:40:49 -05:00
Charles Giessen
2d6f7dea0a Add negative test for are_extension_feature_present
Didn't handle the case where some fields were supported but others weren't.
2024-06-13 10:25:28 -05:00
Charles Giessen
71a29a4b72 Make are_extension_features_present handle mismatched lists
The original implementation only worked if the requested features
had the same length. It'll now handle that properly.
2024-06-13 10:25:28 -05:00
n0F4x
fa75546109 Remove unnecessary feature checks 2024-06-13 10:25:28 -05:00
n0F4x
f238a7355f Fix typos in function documentation 2024-06-13 10:25:28 -05:00
n0F4x
92dc597184 Add are_extension_features_present to PhysicalDevice 2024-06-13 10:25:28 -05:00
Charles Giessen
91421d34b0 Set the sType for users to fix regression
Features 11, 12, and 13 structs used to set the sType manually for the user.
That was turned into an assert which inadvertently broke users code. This
is being reverted.
2024-06-13 09:21:58 -05:00
Imad Laggoune
fbad8786a4 [Change] Pass by Pointer to Pass by Reference
-Update all arguments in supports_features to be passed by reference rather then pointers.
-Make necessary changes for all calls to supports_features.
2024-05-29 11:48:22 +01:00
Imad Laggoune
cf2830cd32 Work Around for SEGFAULT in supports_features
-Turn every argument in support_features into const pointers.

-Change support_fueatures calls to match the new arguments.

-Add checks for nullptr.
2024-05-29 11:48:22 +01:00
Charles Giessen
8320b691f7 Rename parameter in enable_extension_features_if_present
Prevents shadowing warnings from annoying users.
2024-05-29 10:05:10 +01:00
charles-lunarg
c30cab593f Update to latest Vulkan-Headers 2024-05-14 09:11:54 -06:00
charles-lunarg
1075574e09 Update to latest Vulkan-Headers 2024-05-07 17:03:01 -06:00
Charles Giessen
c9d94287a5 Add enable_features_if_present to PhysicalDevice
Allows users to enable features if they are present, getting back a bool
telling them whether the feature is supported and will be enabled on the
device.

Also:
* Removes redundant VkPhysicalDeviceFeatures2 struct in vkb::PhysicalDevice.
* Adds test copying of details when creating a VkDevice so that test can check
what features were actually enabled on the device.
* Creates GenericFeatureChain struct for managing pNext chains.
* Allow multiple calls to set_require_features by combining the fields
2024-04-26 16:02:25 -06:00
Charles Giessen
a78a7f38da Assert that set_required_features sTypes are set
This allows the set_required_features_11/12/13 to take a reference instead
of a value. Applications should set the sType, vk-bootstrap shouldn't be
doing that for apps.
2024-04-26 16:02:25 -06:00
Charles Giessen
e186301249 Fix getting started docs using pointer instead of reference
add_required_extension_features takes a reference now, but the docs
indicated it took a pointer.
2024-04-26 16:02:25 -06:00
charles-lunarg
50b75222b2 Update to latest Vulkan-Headers 2024-04-23 09:46:43 -06:00
charles-lunarg
9f816ac215 Update to latest Vulkan-Headers 2024-04-15 18:55:24 -06:00
Charles Giessen
99e51d782e Enable PIC dependent on BUILD_SHARED_LIBS
While vk-bootstrap is a static library, it needs to have PIC enabled
if BUILD_SHARED_LIBS is on so it can work with shared libraries.
2024-03-27 11:32:16 -05:00
charles-lunarg
a5950c0700 Update to latest Vulkan-Headers 2024-03-27 10:55:52 -05:00
charles-lunarg
01ef3217f7 Update to latest Vulkan-Headers 2024-03-11 21:21:29 -06:00
dependabot[bot]
66ffbb23bd Bump peter-evans/create-pull-request from 4 to 6
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 4 to 6.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v4...v6)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-06 13:05:48 -07:00
dependabot[bot]
30d294136d Bump actions/setup-python from 2 to 5
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-06 13:04:49 -07:00
Charles Giessen
72f45a22e2
Fix dependabot.yml to specify package-ecosystem as github-actions 2024-03-06 10:50:03 -07:00
Charles Giessen
50151234f5
Create dependabot.yml
Add depdendabot for updating actions automatically.
2024-03-06 10:45:24 -07:00