Commit Graph

119 Commits

Author SHA1 Message Date
github-actions[bot]
68052d9343
Update Vulkan-Headers to v1.3.260 (#1629)
Co-authored-by: GitHub <noreply@github.com>
2023-07-31 13:37:47 +02:00
github-actions[bot]
48b4b6f985
Update Vulkan-Headers to v1.3.259 (#1626)
Co-authored-by: GitHub <noreply@github.com>
2023-07-24 10:39:52 +02:00
Andreas Süßenbach
2613539ff4
Change move assignment operators of vk::raii handles from using std::exchange to using std::swap (#1607) 2023-06-28 17:03:08 +02:00
Sharadh Rajaraman
6c1996f068
Add C++20 module interface file and tests (#1582)
* feat: exported vk::raii types in vulkan.ixx, with a small test

* feat: *almost* complete vulkan.ixx; missing functions in vulkan_funcs.hpp and constexpr auto defines

* Exported free functions in `vulkan_funcs.hpp` in `vulkan.ixx`

* Completed vulkan.ixx

Exported all types, structs, functions; need to handle anonymous namespace and getDispatchLoaderStatic()

* Moved `vk::anon-namespace::throwResultException` to `vk::detail::throwResultException` to solve linking errors

* Made `vk::getDispatchLoaderStatic` not `static`

`static`in namespace/global scope has to do with internal/external linkage, and not lifetime

* Fixed debug assert fail in `generateCppModuleStructUsings`

* Removed references to `.cppm`

* Formatting and versioning changes

- CMake version handling simplified
- vulkan.ixx includes new structs from new versions
- vulkan.hpp and vulkan_raii.hpp reformatted with clang-format 14

* Removed extraneous includes

- std::optional -> std::string::empty
- std::filesystem was unused

* Fixed constexpr function and value generation
- 'c' prefix removed
- Constants casing fixed
- Types for constants fixed
- Constants assigned to macros
- Ordering of constants and consteval functions fixed

* Moved constexprs to `vulkan.hpp`

- Added corresponding `using` statements to `vulkan.ixx`
- Changed `consteval auto(auto)` functions into templated SFINAE `constexpr` functions

* Formatting, signposting, misc fixes

- Added newlines around macro guards
- Added signposting comments for relevant groups of `using`-statements in `vulkan.ixx`
- Guarded createInstanceUnique with macro guard
- Use m_handles.at("").commands for Funcs

* Changed module file extension to `.cppm`

- It follows the rest of the project convention; `ixx` looks really weird next to `.hpp` and `.cpp`
- CMake transparently handles any extension anyway

* Added `VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE` to `vulkan.cppm`

* Added format traits and extension inspections

- Straightforward, since everything is hard-coded

* Added documentation about Vulkan-Hpp C++ module

- Compiler requirements
- CMake compilation
- Command-line examples

* Added vulkan_hash.hpp

- No need for `using`, since all declarations are template specialisations of existing `std` objects

* Documentation and comment fixes

- Removed extraneous CMake version comments
- Documentation about default dynamic dispatcher with the module
- Comment updates in the source code

* Moved constexpr defines and using statements 

- Moved to after resultUsings in both vulkan.hpp and vulkan.cppm
- Also split up constexprDefinesAndUsings
- Used const_cast for constexprDefines()

* Used std::string instead of std::stringstream

- Some changes also in previous commit
- Also removed overly-clever ranges algorithms

* Simplified protection generation

- Removed `generateNotProtection`
- Added optional `bool` parameter to `generateProtection` for `#if !defined( ... )`

* Simplified Cpp20Modules CMakeLists

- Made C++ standard and libraries into parameters
- Removed FindVulkan call; already done

* `constexpr` generation fixed

- Made all generating functions `const`
- Removed typos and extra comments
- Extracted out filtering functionality into separate functions

* Simplified defines partition generation

- Added `DefinesPartition` struct as a member variable
- Added non-const function to write to the above in `readTypeDefines`
- Removed previous implementation that made many copies

* Added `generateUsingsAndProtection` lambda to RAII name generation

* Moved around `partitionDefines` to make more sense

- called once at the end of the constructor
- edited comments

* Updated headers to 1.3.255

* Removed std::ranges and ranges view adaptors

- CI isn't passing with them

* Fixed constexpr functions for C++11 and C++14

- Removed `enable_if_t` and `is_integral_v` 
- Changed `auto` return type into `uint32_t`

---------

Co-authored-by: Sharadh Rajaraman <r.sharadh@yahoo.com.sg>
2023-06-28 14:10:51 +02:00
github-actions[bot]
3d95b910da
Update Vulkan-Headers to v1.3.255 (#1604)
Co-authored-by: GitHub <noreply@github.com>
2023-06-26 14:12:49 +02:00
Andreas Süßenbach
9f89f760a6
Update Vulkan-Headers to v1.3.254 (#1596) 2023-06-19 15:02:19 +02:00
Andreas Süßenbach
c55cf16397
Fix wrong usage of 'structureChains' in generating functions returning a StructureChain and a vector of data. (#1594) 2023-06-19 12:46:04 +02:00
GitHub
0ab2f4a18a Update Vulkan-Headers to v1.3.253 2023-06-11 16:53:55 +02:00
GitHub
9c3fb4f8df Update Vulkan-Headers to v1.3.251 2023-05-30 02:36:42 -07:00
github-actions[bot]
d4d0ac4859
Update Vulkan-Headers to v1.3.250 (#1574)
Co-authored-by: GitHub <noreply@github.com>
2023-05-08 11:07:25 +02:00
Andreas Süßenbach
6bf5c311b2
Add support for a new class of functions (#1570)
plus refactor returnType generation
2023-04-26 10:56:57 +02:00
Andreas Süßenbach
95c622a64f
Extend support of some special type of functions. (#1567) 2023-04-24 18:06:06 +02:00
Andreas Süßenbach
678295aa75
Update Vulkan-Headers to v1.3.246 (#1551) 2023-04-03 13:29:44 +02:00
github-actions[bot]
1bd3877dcc
Update Vulkan-Headers to v1.3.244 (#1535)
Co-authored-by: GitHub <noreply@github.com>
2023-03-20 10:03:08 +01:00
Andreas Süßenbach
f4b679c7e7
First step in generalizing handling of attribute "altLen". (#1528) 2023-03-09 10:04:33 +01:00
Andreas Süßenbach
9e66a8886a
Refactor reading procedures (#1521) 2023-03-01 10:17:02 +01:00
github-actions[bot]
3853394ffa
Update Vulkan-Headers to v1.3.241 (#1516)
Co-authored-by: GitHub <noreply@github.com>
2023-02-21 11:20:28 +01:00
Andreas Süßenbach
71acf3515b
Change requiredIn in TypeData from std::string to std::set<std::string> (#1514)
+ some member data renaming
2023-02-20 20:01:34 +01:00
Andreas Süßenbach
00eee2ef0f
Change referencedIn in CommandData from std::string to std::set<std::string> (#1512) 2023-02-20 15:58:14 +01:00
Andreas Süßenbach
e40e6b641e
Update Vulkan-Headers to v1.3.239 (#1489) 2023-01-23 10:37:51 +01:00
github-actions[bot]
e4b8afe005
Update Vulkan-Headers to v1.3.238 (#1472)
Co-authored-by: GitHub <noreply@github.com>
2022-12-20 17:48:45 +01:00
Andreas Süßenbach
23a13e4707
Add support of clang_format version 13 and 14. (#1468) 2022-12-12 17:30:35 +01:00
github-actions[bot]
d3728e63a1
Update Vulkan-Headers to v1.3.237 (#1466)
Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: Andreas Süßenbach <asuessenbach@nvidia.com>
2022-12-12 10:13:44 +01:00
GitHub
fb561d8092 Update Vulkan-Headers to v1.3.236 2022-12-06 00:11:19 +00:00
GitHub
aed619647c Update Vulkan-Headers to v1.3.235 2022-11-18 00:12:31 +00:00
GitHub
92c36643f1 Update Vulkan-Headers to v1.3.233 2022-11-07 00:12:52 +00:00
asuessenbach
d5ad2e1883 Introduce function release() to all vk::raii::HandleTypes. 2022-10-25 12:11:29 +02:00
asuessenbach
1ab5fa6550 Support structs holding arrays of data, where the data size is given by a pointer-type.
In that case, no improved constructor and no improved setters are generated.

Plus some minor cleanup.
2022-10-24 10:39:19 +02:00
GitHub
3b5961d5ce Update Vulkan-Headers to v1.3.230 2022-09-30 00:20:29 +00:00
GitHub
917ba7cbb0 Update Vulkan-Headers to v1.3.229 2022-09-23 00:12:32 +00:00
asuessenbach
6fe966c6d9 Fix inconsistency with return type of vk::raii::SwapchainKHR::getImages()
+ some minor cleanup
2022-09-21 10:08:07 +02:00
asuessenbach
d0317af5a9 [raii] Add missing handling of successCode in move-construction and move-assignment of multi-successCode handles. 2022-09-14 12:21:26 +02:00
asuessenbach
34725b3192 Introduce helper class vk::StridedArrayProxy; use it on functions with parameters having the 'stride' attribute. 2022-09-12 16:53:44 +02:00
GitHub
5c406ec531 Update Vulkan-Headers to v1.3.226 2022-09-02 00:12:10 +00:00
Stephan Seitz
8afaf0e2d0 fix: include <utility> in vulkan_raii.hpp for std::exchange 2022-08-29 23:12:25 +02:00
GitHub
33dad92cec Update Vulkan-Headers to v1.3.225 2022-08-24 08:40:49 +02:00
asuessenbach
5480d192f5 Refactor the CMakeLists for all the samples; use vulkan.hpp/vulkan_raii.hpp as precompiled header. 2022-08-10 15:29:28 +02:00
asuessenbach
cb4a573b42 Combine two types of commands into one generation function 2022-08-01 14:53:06 +02:00
asuessenbach
e8179c8f49 Combine two types of commands into one generation function 2022-08-01 11:32:05 +02:00
GitHub
3e449ebc53 Update Vulkan-Headers to v1.3.222 2022-07-22 00:12:13 +00:00
GitHub
93f8b6b541 Update Vulkan-Headers to v1.3.219 2022-07-01 00:11:04 +00:00
asuessenbach
2ddd380a23 Combine two types of commands into one generation function 2022-06-29 08:13:42 +02:00
asuessenbach
39be44dc65 Combine two types of commands into one generation function 2022-06-28 13:33:36 +02:00
asuessenbach
429e610f7e Combine two types of commands into one generation function 2022-06-28 08:41:36 +02:00
asuessenbach
448efe9edb Combine two types of commands into one generation function 2022-06-27 10:03:03 +02:00
asuessenbach
5075c94b8a Combine two types of commands into one generation function 2022-06-23 11:42:03 +02:00
asuessenbach
b7146538a5 Combine two types of commands into one generation function 2022-06-21 09:22:03 +02:00
asuessenbach
2c536b75b9 Combine two types of commands into one generation function 2022-06-20 12:26:30 +02:00
asuessenbach
de7127a963 Combine two types of commands into one generation function 2022-06-15 11:57:25 +02:00
asuessenbach
66fc081783 Combine two types of commands into one generation function 2022-06-14 10:53:50 +02:00