Commit Graph

919 Commits

Author SHA1 Message Date
Andreas Süßenbach
11121e142a
Simplified constant alias handling (#1845) 2024-04-15 10:18:02 +02:00
Andreas Süßenbach
3134b1b42a
Simplify alias handling for Bitmasks and Commands. (#1843) 2024-04-11 08:43:15 +02:00
Andreas Süßenbach
ed5b48b517
Pay attention to struct aliases to determine struct dependencies. (#1842) 2024-04-08 18:00:46 +02:00
Andreas Süßenbach
bb66ad3b04
Moved some implementation details into namespace detail. (#1840) 2024-04-08 11:40:53 +02:00
Andreas Süßenbach
4e9c7ec4c3
Add SFIXED5 as valid value for numericFormat in format::component. (#1841) 2024-04-04 08:18:15 +02:00
Andreas Süßenbach
d111d68be8
Simplify handling of enum value aliases (#1838) 2024-04-03 08:29:10 +02:00
Andreas Süßenbach
8c9901c072
Extend finding an enum value to also look for the aliases. (#1839) 2024-04-02 13:25:52 +02:00
Andreas Süßenbach
a7ac08b8d2
Guard type trait CppType to map from VkHandle to vk::Handle by ( VK_USE_64_BIT_PTR_DEFINES == 1 ). (#1836) 2024-03-25 14:00:43 +01:00
Andreas Süßenbach
89dd8393db
Refactored storing of enum values. (#1831) 2024-03-25 10:47:09 +01:00
Andreas Süßenbach
ce84c37abf
Reorganized enum value alias handling. (#1830) 2024-03-21 08:05:15 +01:00
Andreas Süßenbach
194708b54c
Extent type trait vk::CppType to map from VkHandle to vk::Handle (#1829) 2024-03-19 14:07:03 +01:00
Andreas Süßenbach
19f90f043f
Removed an invalid error check on structs. (#1828) 2024-03-18 12:11:31 +01:00
Andreas Süßenbach
695de1bc3a
Fix messages in checkExtensionCorrectness (#1826) 2024-03-11 11:56:56 +01:00
David Ryskalczyk
17226363e7
Fix for VULKAN_HPP_TYPESAFE_CONVERSION defined to 0 (#1806)
* Fix for VULKAN_HPP_TYPESAFE_CONVERSION defined to 0

* Remove the check if VULKAN_HPP_TYPESAFE_CONVERSION actually is defined, just check if it's 1.

---------

Co-authored-by: asuessenbach <asuessenbach@nvidia.com>
2024-03-11 09:39:39 +01:00
Andreas Süßenbach
2b35399a73
Remove unnecessary static_casts on vk::Results. (#1822) 2024-03-06 08:54:20 +01:00
Andreas Süßenbach
5e7649dcb5
Simplified generation of lists of arguments or initializers (#1821) 2024-03-05 08:16:22 +01:00
Andreas Süßenbach
85daa22a04
Relax requirements on FlagBits types. (#1817) 2024-02-29 08:26:01 +01:00
Andreas Süßenbach
73f210a604
Three fixes: (#1816)
- do not create enhanced struct constructors, if the length of an array is determined by a member of that struct that is a pointer;
- check for error if a command parameter has a len attribute, but is not a pointer
- accept sync access and sync stage to be multiply aliased.
2024-02-28 13:04:56 +01:00
Andreas Süßenbach
789c215e74
Accept multiple XML <formats> tags. (#1814) 2024-02-26 15:38:33 +01:00
Andreas Süßenbach
29723f90a1
Update Vulkan-Headers to v1.3.278 (#1810) 2024-02-19 22:00:57 +01:00
Andreas Süßenbach
4c130b9051
Switch from using strncpy to strncpy_s. (#1809) 2024-02-19 16:06:28 +01:00
Andreas Süßenbach
38e3e8f800
Fix ordering determination of structs. (#1807) 2024-02-19 12:35:54 +01:00
Nikolai Siukosev
f1a38ff729
Disabled vk::raii::exchange() implementation for C++14 or newer (#1803)
* Disabled `vk::raii::exchange()` implementation for C++14 or newer. Replaced with `using std::exchange`

* Regenerated raii headers
2024-02-15 08:35:02 +01:00
Andreas Süßenbach
982afd2929
Special handling for command vkGetDeviceFaultInfoEXT: changed return type from ResultValue to ResultValueType (#1800) 2024-02-08 15:30:36 +01:00
Andreas Süßenbach
c74c22fb77
Use some special handling for struct vk::DeviceFaultInfoEXT (#1796) 2024-02-08 11:40:27 +01:00
Andreas Süßenbach
1b6ea3c295
Resolve warning on multiple len usage in struct VkVideoDecodeAV1PictureInfoKHR (#1791) 2024-02-06 13:16:16 +01:00
Andreas Süßenbach
9fa4459c50
Add special handling for call sequence in commands for vkGetDeviceFaultInfoEXT (#1790) 2024-02-05 15:44:40 +01:00
Andreas Süßenbach
6bdba3ef31
Add support for command argument attribute "len" with value "1". (#1789) 2024-02-05 13:13:38 +01:00
Andreas Süßenbach
bba05939b9
Extend the noDeleterFunction list by vkReleaseCapturedPipelineDataKHR. (#1784) 2024-02-02 21:52:35 +01:00
Andreas Süßenbach
81be6ce248
Add missing brace. (#1783) 2024-02-02 21:34:43 +01:00
Andreas Süßenbach
3a946ddfa1
Specify std::min to work on type size_t for copy operations in struct constructors. (#1782) 2024-02-02 21:22:52 +01:00
Andreas Süßenbach
7bd7372016
Refactored gathering initializers for enhanced struct constructors. (#1781) 2024-02-02 18:22:51 +01:00
Andreas Süßenbach
78bfb316aa
Add support of attribute "len" for array-sized structure members. (#1779) 2024-02-02 12:53:29 +01:00
Andreas Süßenbach
fa020b9bb5
Resolved some code analysis warnings. (#1774) 2024-01-23 14:10:52 +01:00
Andreas Süßenbach
3e6fed9492
Introduce implicit cast operators for vk::UniqueHandles, vk::SharedHandles and vk::raii::Handles (#1771) 2024-01-16 13:48:53 +01:00
Andreas Süßenbach
e4ea505027
Simplified typename checks on allocator template types (#1770) 2024-01-10 13:30:04 +01:00
Andreas Süßenbach
9eab68eb5d
Add function pointer check when using DispatchLoaderDynamic. (#1769) 2024-01-08 12:19:28 +01:00
Andreas Süßenbach
db5c141013
Downgrade error on multiple identical "depends" attributes for "require" sections for an extension to a warning. (#1765) 2024-01-04 11:37:46 +01:00
Andreas Süßenbach
d2f13e2f7f
Include <memory> in vulkan_raii.hpp to have std::unique_ptr available. (#1762) 2024-01-03 11:49:10 +01:00
Andreas Süßenbach
52666b03f5
Resolve warning on struct with multiple members referencing the same member for len. (#1759) 2024-01-02 14:52:16 +01:00
Andreas Süßenbach
197017ef20
Add support of noexcept-path for vk::raii classes (#1742) 2024-01-02 13:47:01 +01:00
Andreas Süßenbach
6b132a4628
Fix usage of wrong command name when determining the skip count for that command (#1747) 2023-12-11 14:46:16 +01:00
Andreas Süßenbach
84b77d1406
Add support for a new class of commands. (#1741) 2023-11-29 19:21:22 +01:00
Andreas Süßenbach
5bd1e56054
Explicitly ignore new limittype "not". (#1740) 2023-11-29 19:20:27 +01:00
Patrick O'Connell
6453966415
Add missing includes (#1730) 2023-11-16 08:55:30 +01:00
Andreas Süßenbach
846ac99cee
Remove warning on "ratified" and "supported" being different for an extension. (#1728) 2023-11-14 16:50:41 +01:00
Sharadh Rajaraman
26664a38a4
Add extension macros as constexpr (#1710)
* Initial implementation

* Reordered prefixes, added SPEC_VERSION macro

- And added using statements to module file

* Actually add changes to .hpp and .cppm files

* Fixes for extension constexpr macros

- renamed some vars
- simplified logic and control flow

* Grouped by extension name rather than macro guards

- And added titles to all extension constexprs

* Syntax changes

- Removed the structured binding and fixed asserts
- Used C++20 functions
- Added another assert to check that extension and specversion macros exist

* Remove `std::ranges` usage
2023-10-26 14:59:13 +02:00
Andreas Süßenbach
962979c679
Identify delete commands starting with "vkRelease" (#1697) 2023-10-16 16:01:35 +02:00
Andreas Süßenbach
c8cf030fe9
Add FlagBits type as required if it is not listed where the corresponding Flags type is required (#1689) 2023-10-10 21:54:36 +02:00
Anton Shangareev
b961a1a4c2
Fix C++20 module build with -DVULKAN_HPP_NO_SMART_HANDLE (#1678)
* Move SharedHandle and UniqueHandle under correct preprocessor guard in .cppm

* Fix VulkanHppGenerator
2023-10-09 12:25:01 +02:00