Commit Graph

195 Commits

Author SHA1 Message Date
Andreas Süßenbach
7d5c399cd7
Merge pull request #533 from asuessenbach/disabled
Improve handling of disabled extensions.
2020-03-12 10:18:44 +01:00
asuessenbach
8be8282458 Add support of array-sized function arguments 2020-03-10 15:40:05 +01:00
asuessenbach
41cece140e Yet another correction on braces for arrays of enums. 2020-03-10 14:26:36 +01:00
asuessenbach
434c0326f4 Support arrays of enums in structures. 2020-03-10 11:47:09 +01:00
asuessenbach
594acb2ecd Improve handling of disabled extensions.
(Partly) resolves #531
2020-03-10 10:06:33 +01:00
asuessenbach
87cecae683 Update of vk.xml to version 134; resolve warnings
Resolves #535
2020-03-10 10:00:06 +01:00
asuessenbach
cd554ce9e0 Introduce support of VkFlags64
+ add support of structExtends via alias'ed structures
+ add support of alias'ed commands via already alias'ed commands
2020-03-04 15:29:06 +01:00
asuessenbach
1b22ac9658 Introduce spaceship operator<=> on Flags with C++20, replacing all the relational operators
+ replace variables/struct members named "requires" with "requirements"
2020-03-03 14:02:32 +01:00
asuessenbach
f43626d8a1 Move aliased platform specific stuff out of the platform protection. 2020-03-02 14:09:47 +01:00
Andreas Süßenbach
f9d90dfd1c Some more checks 2020-02-25 10:29:13 +01:00
asuessenbach
7feffc1b9d Add/Reshape copy constructors for structs and unions.
Allows usage of constexpr on those constructors.

Resolves #493
2020-02-06 11:15:57 +01:00
Andreas Süßenbach
cf39cd4f0c
Introduce helper function check() to ease throwing on spec error detection. (#502)
* Introduce helper function check() to ease throwing on spec error detection.

* Use some more checks

* Some more checks
2020-02-04 10:35:33 +01:00
Andreas Süßenbach
7e81c7bddf Improve construction of success check and return type of enhanced functions returning a vector of UniqueHandles (#484) 2020-01-15 16:54:55 +01:00
Andreas Süßenbach
65450515ee Added a couple of features: (#480)
+ support for 2D arrays
+ support for bitfield members in a structure (slightly restricted: no default member initializers and for any vk::*FlagBits member Vk*FlagBits would be used)
+ aliases to enums are listed by using declarations
+ for aliases to handle types, an aliased Unique handle type is added by a using declaration
+ a check in determining an enhanced return type is extended
2020-01-13 15:00:59 +01:00
Andreas Süßenbach
0b01a8a74c
Introduce default initializers for member variables, simplify default values for constructor arguments (#455) 2019-12-12 11:40:21 +01:00
Andreas Süßenbach
e850963599 Extend functions returning a std::vector<vk::StructureChain> to use an additional local vector for getting the information, and then copy the heads of the StructureChains over to the return vector (#432)
Fixes #400
2019-11-13 10:04:50 +01:00
Andreas Süßenbach
3fc2ea47fd Replace namespace layout stuff by a simple const for the sType member of the structures (#428)
+ reshape of constructors and assignment operators of structs.
2019-11-07 08:22:47 +01:00
Andreas Süßenbach
e2268eadb6 Introduce usage of constexpr for constructors of structs. (#385) 2019-09-23 15:57:48 +02:00
Andreas Süßenbach
a12c3807de cleanup on stringstream usage. (#376) 2019-08-27 09:02:49 +02:00
Andreas Süßenbach
b01f3c0bb5 Introduce namespace layout to have structures with private member sType that still are still standard_layout conformant. (#360) 2019-07-23 09:28:14 +02:00
Andreas Süßenbach
712acf08f8 Filter out multi-bit values for to_string function on FlagBits. (#355) 2019-07-03 13:53:44 +02:00
nyronium
96299b3a1f Rename variables named 'requires' which is a keyword in c++20 (#336) 2019-06-11 10:12:37 +02:00
Frank Richter
0e76bc68e3 Support compilation with VK_NO_PROTOTYPES defined (#328)
* Add checks for VK_NO_PROTOTYPES so the can still compile if that is defined
2019-05-21 14:57:52 +02:00
Andreas Süßenbach
bcc02a1cb0 Cleanup on platform protection handling. (#312) 2019-04-01 09:30:06 +02:00
Andreas Süßenbach
7905145361 Get the to_string function of an enum inside of the corresponding platform protection (#311) 2019-03-21 11:53:30 +01:00
Andreas Süßenbach
fe614bd960 Add platform specific protection for enum classes listed in a platform-protected extension. (#310) 2019-03-20 17:39:51 +01:00
Andreas Süßenbach
3f20016ba9 Make the default value on "other" types dynamic by reading those types from <type> "requires" in vk.xml. (#306) 2019-03-19 15:34:00 +01:00
Andreas Süßenbach
48ceca69f3 Improve alias handling of enums and structs: (#305)
- Extend and unify alias handling on feature and extension enums
- Extend aliases of enums handling to accept two levels of aliasing
- Extend aliases of structures to allow mulitple aliases of the same structure
- Simplify forward declarations to just declare all structures and aliases
2019-03-18 20:48:10 +01:00
Andreas Süßenbach
efe676ab66 Handle aliased enum values with different extension tag as their base value. (#290)
+ update Vulkan-Docs to version 1.1.100.
2019-02-13 12:18:49 +01:00
Andreas Süßenbach
e3f096bc7c Cleanup on reading structure members and command arguments. (#282) 2019-01-14 10:09:19 +01:00
Andreas Süßenbach
a147b07737 Cleanup code generation with focus on removing the need to sort all dependencies before writing them. 2019-01-09 11:55:11 +01:00
Andreas Süßenbach
e765318a3d Correct usage of platform/protect information. (#276)
+ update to version 1.1.94
2018-12-03 14:33:37 +01:00
Andreas Süßenbach
c02200ce37 Add support for stateful allocators used with functions returning a std::vector. (#263)
+ update Vulkan-Docs
2018-10-26 09:07:25 +02:00
Andreas Süßenbach
605ff24487 Add an error check on functions returning VkResult but not specifying success codes. (#262) 2018-10-15 14:27:42 +02:00
Andreas Süßenbach
a9b5b68572 Switch to warning level 4 (#240) 2018-08-17 17:47:48 +02:00
Markus Tavenrath
eaf0fda6de
List out default ctor parameters in separate lines (#225)
It's often useful to browse through vulkan.hpp to check what the default values
for various info structs are, but having them on a single line makes it hard to
read.

This change puts each ctor argument on a different line, which makes the
default values more visible.
2018-06-12 09:58:52 +02:00
Andreas Süßenbach
b075d67fbc Add constructor for structures which kind of extends some other structures (like Offset3D extending Offset2D) (#213) 2018-05-07 16:44:32 +02:00
Markus Tavenrath
8dbe1fa9d4 Don't create destroy functions for alias commands (#191) 2018-03-01 11:51:30 +01:00
Andreas Süßenbach
818dc27d06 Introduce overloads for destroy* and free* functions (#180) 2018-02-14 02:49:48 -08:00
Andreas Süßenbach
75cb7d14f1 Correct usage of Allocator in functions returning a vector of UniqueObjects (#178) 2018-02-01 14:45:30 +01:00
Markus Tavenrath
4b77709e49 Add Vulkan function dispatcher which queries pointers through vkGet*ProcAddress (#176) 2018-01-29 16:39:35 +01:00
Markus Tavenrath
e97e34675d Add support for Vulkan call delegation to support custom loaders. (#174) 2018-01-22 15:36:15 +01:00
Andreas Süßenbach
d74e5f6199 Change functions returning a UniqueHandle to returning a ResultValue<UniqueHandle>::type, making VULKAN_HPP_NO_SMART_HANDLE and VULKAN_HPP_NO_EXCEPTIONS really independent. (#173) 2018-01-16 14:59:54 +01:00
Andreas Süßenbach
c4fcc08e95 Reshape alias handling according to new alias usage in vk.xml. (#167) 2018-01-04 10:51:17 +01:00
Andreas Süßenbach
15ac21442d Refactor into the newly introduced class VulkanHppGenerator. (#164) 2017-12-21 07:40:48 -04:00