Commit Graph

1102 Commits

Author SHA1 Message Date
YaaZ 21d217d163 Fix typo leading to module compilation error 2025-11-18 15:22:55 +01:00
Andreas Süßenbach 8e79f71c15
Extend enum value alias handling. (#2361)
Set Version Tag / set-version-tag (push) Has been cancelled Details
2025-11-13 14:09:34 +01:00
Andreas Süßenbach 9747e68285
Restrict template argument Dispatch to only take evaluate the newly introduced type trait isDispatchLoader with value == true. (#2360)
Set Version Tag / set-version-tag (push) Has been cancelled Details
2025-11-12 18:21:31 +01:00
Nikita Gubarkov c75dcdc0bb
Export vk::raii::isVulkanRAIIHandleType (#2357)
Set Version Tag / set-version-tag (push) Waiting to run Details
2025-11-12 10:12:14 +01:00
Andreas Süßenbach 15f4b3024f
Fix default values of function arguments when VULKAN_HPP_NO_DEFAULT_DISPATCHER is defined. (#2356) 2025-11-12 10:08:57 +01:00
Jan Kuhlmann 1491456a64
use assert macros (#2352)
Set Version Tag / set-version-tag (push) Waiting to run Details
2025-11-11 14:56:14 +01:00
Andreas Süßenbach 9423ad7f69
Fix wrongly generated interface of vk::raii::Device::getFaultInfoEXT. (#2350) 2025-11-11 11:15:31 +01:00
Andreas Süßenbach 63a3afa9b2
Fix structure usage in special command flavours of vkSetDebugUtilsObjectNameEXT and vkSetDebugUtilsObjectTagEXT (#2348) 2025-11-10 14:29:50 +01:00
Andreas Süßenbach d0b04b733a
Removed special handling for VkDeviceFaultInfoEXT, which was plainly wrong. (#2343) 2025-11-06 08:22:31 +01:00
Andreas Süßenbach 4bc2057ad8
Cleanup on default assignment macros. (#2335) 2025-10-30 15:37:07 +01:00
Andreas Süßenbach 878fb0d390
Add special command flavours for vkSetDebugUtilsObjectNameEXT and vkSetDebugUtilsObjectTagEXT (#2329) 2025-10-29 09:18:30 +01:00
Andreas Süßenbach 1958615077
Minor code cleanup. (#2328) 2025-10-23 14:21:50 +02:00
Andreas Süßenbach 3c1a2e5f10
Minor code cleanup. (#2325) 2025-10-16 13:35:27 +02:00
Nikita Gubarkov 9ab0f0602b
Export comparison operators (#2324) 2025-10-16 13:35:01 +02:00
Andreas Süßenbach 75e7718add
Add support for new api "vulkanbase" (#2323)
* Add support for api "vulkanbase"

* Merge internal APIs before processing

After loading the XML, merge internal API blocks into the public ones
so that we don't litter the vulkan and vulkan sc headers with
Base/Compute/Graphics version notations.

* Modify algorithm to merge internal features into public ones.

---------

Co-authored-by: Daniel Koch <dkoch@nvidia.com>
2025-10-13 21:51:04 +02:00
Andreas Süßenbach aab9fc1ada
Introduce a compile-time flag to handle VK_ERROR_OUT_OF_DATE_KHR like a success code. (#2312) 2025-10-13 11:05:21 +02:00
Sharadh Rajaraman ed449ac36f
Simplify named module handling and macros (#2303)
* Remove `VULKAN_HPP_ENABLE_STD_MODULE` macro; unconditionally use `import std;`

* Emit compile-time warning about experimental state for module

* Refactor `#include` guard to use `VULKAN_HPP_CXX_MODULE` for all headers

* Group global namespace exports into block

* Simplify CMake setup for modules

- Raise minimum version to 3.22 (this is what we have in CI)
- Remove duplicated options
- Set up a single option that depends on magic `__CMAKE::CXX23` target; defaults to OFF unless magic UUID set (or future CMake version supports)

* Rebase changes

* Guard C++ module warning with compile-time flag

* Fix macro guard for experimental warning

* Force `<vulkan/vulkan_hpp_macros.hpp>` at the top of includes list
2025-10-09 21:04:11 +02:00
Andreas Süßenbach 7adfc34c5f
Minor code cleanup. (#2321) 2025-10-09 14:01:53 +02:00
Andreas Süßenbach d7f08491dc
Add support for a new flavour of commands. (#2318) 2025-10-08 20:16:53 +02:00
Andreas Süßenbach 9e9b735e35
Minor code cleanup. (#2314) 2025-10-02 12:12:53 +02:00
Andreas Süßenbach fda19f0bb3
Extend test DesignatedInitializers to use a struct with deprectated members. (#2305) 2025-09-30 10:45:07 +02:00
Andreas Süßenbach 10578463ae
Minor code cleanup. (#2298) 2025-09-25 13:54:06 +02:00
Nikita Gubarkov 202f053855
Export ResultValue related functions (#2290) 2025-09-22 14:56:32 +02:00
Nikita Gubarkov 938a2c36d2
Expose "raw" RAII constructors (#2280)
* Expose "raw" RAII constructors

* Protected raw constructors only for Buffer and Image
2025-09-18 15:35:27 +02:00
Andreas Süßenbach 857bb352ea
Minor code cleanup. (#2289) 2025-09-18 12:31:02 +02:00
Jan Kuhlmann 4bbdbb434d
manually export vk::SwapchainOwns in module (#2276) 2025-09-15 10:52:02 +02:00
Andreas Süßenbach db104e1c01
Add template CppType to get from C-struct types to vk-struct types, valid with C++20 and above. (#2274) 2025-09-04 13:28:57 +02:00
Andreas Süßenbach 8f2955ba0d
Minor code cleanup (#2275) 2025-09-04 12:00:55 +02:00
Andreas Süßenbach 88d2ac296b
Add support for structure attribute "requiredlimittype" (#2270) 2025-09-02 13:31:57 +02:00
Andreas Süßenbach af5c6fd693
Add support of a new flavour of commands. (#2268) 2025-09-01 11:28:56 +02:00
Andreas Süßenbach 4c3b729686
Minor code cleanup. (#2265) 2025-08-28 15:38:03 +02:00
Andreas Süßenbach f42eadae3d
Add "standard" implementation for raii commands returning a structure chain. (#2263) 2025-08-26 17:03:00 +02:00
Andreas Süßenbach ee89dd16ea
Refactor iterations over required commands. (#2259) 2025-08-21 14:23:00 +02:00
Andreas Süßenbach 6cfec828f6
Refactor file generation functions (#2256)
* Refactor file generation functions

* Rebased on main.
2025-08-18 08:31:15 +02:00
Jan Kuhlmann 7fcd4522e0
Tests: Created std module versions of each test and enabled previously disabled tests (#2248)
* move vulkan module setup function to global scope

* use the vulkan include setup func for module setups instead of manual linking

* test setup function extended to allow for modules

* create std module variant for each test

* remove the obsolete NO_UTILS from test setup

* commented some TODOs

* only enable module tests when VULKAN_HPP_ENABLE_CPP20_MODULES is set

* reenable handles.cpp test

* remove use nested namespaces

* include array header for ArrayProxyNoTemporaries test

* include <compare> in enums for spaceship operator

* manually added <compare> to Flags.cpp test

* properly guarded <string_view> with c++17 requirement
2025-08-14 15:40:20 +02:00
Jon Creighton c90a5bac97
Fix for uninitialised deprecated members in DeviceCreateInfo constructor (#2250) 2025-08-12 08:35:01 +02:00
Andreas Süßenbach 7beac182b2
Remove the superfluous operator<=> for handles. (#2247) 2025-08-11 13:37:09 +02:00
Andreas Süßenbach 0113967b2b
Simplified generation of the reflect function on structures (#2241) 2025-08-06 13:37:07 +02:00
Andreas Süßenbach 621c713cf8
Fix struct constructor with deprecated members (#2236) 2025-08-04 16:38:51 +02:00
Andreas Süßenbach d16c62670b
Mark deprecated struct members as deprecated. (#2230) 2025-07-30 09:36:58 +02:00
Andreas Süßenbach 7dfe7d3ad9
Extend support of VULKAN_HPP_NO_EXCEPTIONS in the raii-namespace (#2226) 2025-07-22 13:48:50 +02:00
Andreas Süßenbach e6d0135c57
Improved error check on exports of commands. (#2225) 2025-07-21 15:11:19 +02:00
Andreas Süßenbach d82ba7c2a0
Explicitly ignore new command attribute "conditionalrendering" (#2223) 2025-07-21 11:58:50 +02:00
Andreas Süßenbach b59d87d696
Minor cleanup work (#2220) 2025-07-18 09:01:07 +02:00
Andreas Süßenbach d3a3c6321f
Extend error check on exports of a required command being in the api list of a feature (#2221) 2025-07-18 08:58:15 +02:00
Andreas Süßenbach fb5fd75ee8
Generalize a check on raii-handle destructor detection. (#2216) 2025-07-15 11:54:59 +02:00
Andreas Süßenbach 605be52aa0
Revert PR 2215 (#2217) 2025-07-15 08:32:59 +02:00
Andreas Süßenbach 0771d2657c
Extend support of api "vulkanbase" (#2215) 2025-07-14 17:56:07 +02:00
Andreas Süßenbach da67e807a8
Remove redundant occurrences of VULKAN_HPP_NAMESPACE:: and VULKAN_HPP_RAII_NAMESPACE:: in vulkan_raii.hpp (#2213) 2025-07-14 16:26:20 +02:00
Jan Kuhlmann e04460f454
remove faulty macro guard (#2212) 2025-07-09 17:24:43 +02:00