Commit Graph

80 Commits

Author SHA1 Message Date
asuessenbach
8219ca081d Refactor generation of simple commands with up to one vector parameter 2020-09-29 12:21:27 +02:00
asuessenbach
b6e6294fb9 Refactor function generation of void-functions enumerating a single vector of data. 2020-09-28 16:34:50 +02:00
asuessenbach
865069ccc3 correct value-check of parameters
+ add missing array sizes for parameters
2020-09-25 23:45:55 +02:00
asuessenbach
1f31648973 Refactor some trivial functions 2020-09-25 09:02:37 +02:00
asuessenbach
0d02918ce8 refactor more functions into the simple void case. 2020-09-24 11:47:18 +02:00
asuessenbach
4d21e2b210 refactor command generation of two-vector getting functions returning void 2020-09-23 09:52:21 +02:00
asuessenbach
5f5ce584ac refactor generation of trivial void functions 2020-09-22 10:22:19 +02:00
asuessenbach
542d2903f4 refactor generation of simple void-functions 2020-09-21 23:18:24 +02:00
asuessenbach
860c2b1d4b refactored generation of simple commands 2020-09-21 12:26:54 +02:00
asuessenbach
d6dfdb547e Correct version of two-step function returning two vectors of data
+ mark wrong version as deprecated (C++14)
2020-09-15 22:54:44 +02:00
asuessenbach
77b401d4a9 correct enhanced version of vkGetQueryPoolResults
- mark wrong version as deprecated (C++14)
- introduce new version returning ResultValue<vector<T,Allocator>>
- introduce new singular version returning ResultValue<T>
2020-09-03 14:20:32 +02:00
asuessenbach
0db791c687 Special handling for commands that get a size and a void-pointer to write data into
- marked previous function that got an ArrayProxy as deprecated (C++14)
- introduce a new function returning a std::vector of the given size
- introduce a new function returning a single value
2020-09-02 15:00:06 +02:00
asuessenbach
2af32d03e0 [DispatchLoaderDynamic] get aliases of functions if getting the function pointer failed 2020-08-19 11:54:25 +02:00
asuessenbach
03eb851f81 Improve handling of local Variables in enhanced simple functions. 2020-08-17 10:21:39 +02:00
asuessenbach
99f990afa1 Extend template argument list for functions returning a std::vector<Stuff> to help compilers detecting the correct function.
+ change the order of Allocator and Dispatch template arguments for functions returning a std::vector<UniqueStuff>, as the Allocator needs to use the Dispatch in those cases!
2020-07-23 18:14:05 +02:00
asuessenbach
0ff1e674ee Reordered listing of structures and handles
-> no need to forward declare the structures any more
2020-07-23 10:02:16 +02:00
asuessenbach
abce7c90cd Remove (most of) the special handling of structure members named "sType", replace it by handling of structure members with a "values" attribute with a single element. 2020-07-13 11:55:16 +02:00
asuessenbach
d86303c0e4 Introduce structure constructors using ArrayProxyNoTemporaries 2020-07-09 12:03:03 +02:00
asuessenbach
b06457a74b Simplified struct setter functions on a union. 2020-07-06 14:52:22 +02:00
asuessenbach
8ddea43942 Introduce helper class ArrayProxyNoTemporaries and structure setter functions using that.
Resolves #62!
2020-07-01 16:39:25 +02:00
asuessenbach
db58507063 Introduce VULKAN_HPP_NO_STRUCT_CONSTRUCTORS so support designated initializers.
You have to define VULKAN_HPP_NO_STRUCT_CONSTRUCTORS to remove all the struct constructors from vulkan.hpp, so that you can use designated initializers on them.
Of course, makes only sense with C++20.
2020-06-24 11:28:43 +02:00
asuessenbach
f87c9330e7 Extend check against protect attribute for types that are required by multiple extensions. 2020-06-15 10:09:07 +02:00
asuessenbach
381494ed3f Update and adjustments to VK_VULKAN_HEADER 143 2020-06-15 08:03:17 +02:00
asuessenbach
8958396a0c Add support for "allowduplicate" attribute on chainable structures. 2020-05-25 09:36:20 +02:00
asuessenbach
cc6162991a Improve extension protection string handling. 2020-05-19 14:34:41 +02:00
asuessenbach
94888c9959 Correct handling of enum aliases 2020-04-30 11:30:17 +02:00
asuessenbach
c6f4dfb79b Correct default initializer for array of enums. 2020-04-29 11:45:10 +02:00
asuessenbach
89190683c8 Add checks on member sType of structs:
- only members named <sType> are supposed to have a <values> attribute
- no <values> attribute is allowed to occur more than once.
2020-04-29 09:04:21 +02:00
asuessenbach
c7c375eb98 Unify type traits handling of Handles, Structures, and IndexTypes. 2020-04-24 09:57:37 +02:00
asuessenbach
f5e59484a6 Introduce usage of clang-format to format vulkan.hpp and the other sources. 2020-04-23 10:55:02 +02:00
asuessenbach
5cb6084118 Adjust structure and union constructors and setter functions to correctly handle sType of a member of that structure/union. 2020-04-21 08:49:17 +02:00
asuessenbach
cc77b67bb8 Provide std::hash<vk::HandleType> to make handles hashable. 2020-04-06 10:41:42 +02:00
asuessenbach
732274919b Correct actual function called by aliased member functions 2020-03-25 17:13:03 +01:00
asuessenbach
0ea8a527ba Introduce ArrayWrapper?D, replacing ConstExpression?DArrayCopy
+ no explicit copy constructor of structs needed any more
+ removed assignment operator of structs that don't hold a const sType member (for those, we still need the assignment operator!)
+ simplified operator==() of structs (pre C++20)
+ resolved some 32bit warnings
2020-03-25 12:35:35 +01:00
asuessenbach
8c6ac21d27 Relax criterion on determining enhanced return type. 2020-03-24 09:43:50 +01:00
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