Commit Graph

1433 Commits

Author SHA1 Message Date
asuessenbach
d90c6cbbfc Add pNext as optional last argument to constructors of structs that hold a pNext. 2022-03-23 17:08:19 +01:00
Andreas Süßenbach
efcb07a591
Merge pull request #1261 from asuessenbach/function
Add support for commands getting two values.
2022-03-23 11:18:20 +01:00
asuessenbach
5e8fb94890 Add support for commands getting two values. 2022-03-23 10:00:40 +01:00
Andreas Süßenbach
ecc6d37d91
Merge pull request #1257 from asuessenbach/constructor
Introduce copy constructor and assignment operator for vk::raii classes that hold handles without a destructor.
2022-03-23 08:17:47 +01:00
Andreas Süßenbach
368092cf22
Merge pull request #1253 from theHamsta/second-try-fix-libc++
fix: include `<algorithm>` in VulkanHppGenerator.cpp
2022-03-22 15:19:12 +01:00
asuessenbach
23c11fe38d Introduce copy constructor and assignment operator for vk::raii classes that hold handles without a destructor. 2022-03-22 13:53:21 +01:00
Stephan Seitz
5a8532b0f7 fix: include <algorithm> in VulkanHppGenerator.cpp
This fixes the build on Clang with `-stdlib=libc++` (if you disable -Werror as there are a lot of warnings)

```
/home/stephan/projects/Vulkan-Hpp/VulkanHppGenerator.cpp:781:28: error: no member named 'find_if_not' in namespace 'std'
      auto endDigit = std::find_if_not( beginDigit, valueName.end(), []( std::string::value_type c ) { return isdigit( c ); } );
                      ~~~~~^
/home/stephan/projects/Vulkan-Hpp/VulkanHppGenerator.cpp:1261:15: error: no member named 'find_if_not' in namespace 'std'
  return std::find_if_not( vectorParams.begin(),
         ~~~~~^
/home/stephan/projects/Vulkan-Hpp/VulkanHppGenerator.cpp:2041:24: error: no member named 'find_if_not' in namespace 'std'
        valid = ( std::find_if_not( destructorIt->second.params.begin(), destructorIt->second.params.end(), isConstructorCandidateParam ) ==
                  ~~~~~^
/home/stephan/projects/Vulkan-Hpp/VulkanHppGenerator.cpp:2145:21: error: no member named 'find_if_not' in namespace 'std'
             ( std::find_if_not( sd.second.members.begin(), sd.second.members.end(), isMember ) == sd.second.members.end() );
               ~~~~~^
/home/stephan/projects/Vulkan-Hpp/VulkanHppGenerator.cpp:6047:17: error: no member named 'count_if' in namespace 'std'
         ( std::count_if( arrayIt->type.postfix.begin(), arrayIt->type.postfix.end(), []( char c ) { return c == '*'; } ) < 2 ) )
           ~~~~~^
5 errors generated.
```

Fixes #1175 together with the optional inclusion of vulkan_hash.hpp
2022-03-22 13:43:38 +01:00
Andreas Süßenbach
3740f14c38
Merge pull request #1256 from asuessenbach/ci
Replace build os windows-2016 by windows-2019.
2022-03-22 13:41:16 +01:00
asuessenbach
c7037f6551 Replace build os windows-2016 by windows-2019. 2022-03-22 11:10:06 +01:00
Andreas Süßenbach
eda82d8695
Merge pull request #1251 from asuessenbach/function
Combine two types of commands into one generation function.
2022-03-16 15:40:54 +01:00
asuessenbach
a104fd65d3 Combine two types of commands into one generation function. 2022-03-16 13:51:43 +01:00
Andreas Süßenbach
f58e6ad301
Merge pull request #1249 from asuessenbach/ignore
Add some error handling for a std::system call.
2022-03-16 13:50:31 +01:00
Andreas Süßenbach
351e667468
Merge pull request #1250 from asuessenbach/208
Update Vulkan-Headers to v1.3.208
2022-03-16 13:46:48 +01:00
asuessenbach
dfffc95731 Update Vulkan-Headers to v1.3.208 2022-03-16 12:19:09 +01:00
Andreas Süßenbach
20238138e7
Merge pull request #1248 from asuessenbach/207
Update Vulkan-Headers to v1.3.207
2022-03-16 12:07:47 +01:00
asuessenbach
aca9dd319e Add some error handling for a std::system call. 2022-03-16 09:35:26 +01:00
asuessenbach
c761497d36 Update Vulkan-Headers to v1.3.207 2022-03-16 09:09:01 +01:00
Andreas Süßenbach
c4153f741a
Merge pull request #1246 from asuessenbach/clang_format_11
Revert some changes in .clang_format_11, that in fact are version 12 features.
2022-03-15 19:09:19 +01:00
asuessenbach
3362287273 Revert some changes in .clang_format_11, that in fact are version 12 features. 2022-03-15 17:53:25 +01:00
Andreas Süßenbach
60b8b4cf1d
Merge pull request #1244 from asuessenbach/function
Combine two types of commands into one generation function.
2022-03-15 13:42:54 +01:00
Andreas Süßenbach
f61d7d117f
Merge pull request #1243 from theHamsta/fix-update-header-pr
ci: fix bash command to retrieve latest Vulkan-Headers commit
2022-03-15 12:03:46 +01:00
asuessenbach
ae11e13e0b Combine two types of commands into one generation function.
Generation of functions that return a VkResult and either get some data or not are combined into one function.

+ some minor cleanup
2022-03-15 11:58:55 +01:00
Stephan Seitz
88ec13796d ci: fix bash command to retrieve latest Vulkan-Headers commit 2022-03-15 10:19:49 +01:00
Andreas Süßenbach
582bade14d
Merge pull request #1242 from asuessenbach/deprecated
Remove deprecated cpp_type.
2022-03-15 08:52:49 +01:00
Andreas Süßenbach
f759596be8
Merge pull request #1241 from asuessenbach/cleanup
Combine two types of commands into one generation function.
2022-03-14 17:32:33 +01:00
asuessenbach
cf5ecd7cc6 Remove deprecated cpp_type. 2022-03-14 15:13:33 +01:00
Andreas Süßenbach
96b7bde8d4
Merge pull request #1240 from asuessenbach/void
Explicitly ignore the result of a call to std::system().
2022-03-14 14:55:44 +01:00
asuessenbach
f58ffe385f Combine two types of commands into one generation function.
Generation of functions that get a StructureChain or some value are combined into one function.
2022-03-14 14:54:56 +01:00
asuessenbach
8a921fc90c Explicitly mark a call to std::system() as void. 2022-03-14 10:56:20 +01:00
Andreas Süßenbach
e02d19207b
Merge pull request #1237 from asuessenbach/cleanup
Minor cleanup work in command generation.
2022-03-14 10:27:27 +01:00
asuessenbach
2148249e0f Minor cleanup work in command generation. 2022-03-10 17:41:47 +01:00
Andreas Süßenbach
1b0576e151
Merge pull request #1238 from asuessenbach/ci
add "sudo apt update" to the ci-ubuntu.yml.
2022-03-10 17:40:37 +01:00
asuessenbach
fecd9d68e6 add "sudo apt update" to the ci-ubuntu.yml. 2022-03-10 16:30:59 +01:00
Andreas Süßenbach
8226bb3aa0
Merge pull request #1236 from asuessenbach/format
Updated clang_format options
2022-03-09 13:35:06 +01:00
asuessenbach
611365b986 Updated clang_format options 2022-03-09 12:28:52 +01:00
Andreas Süßenbach
c3546368b7
Merge pull request #1235 from asuessenbach/cleanup
Minor cleanup work in command generation.
2022-03-09 12:21:25 +01:00
asuessenbach
4fd8ad4baa Minor cleanup work in command generation. 2022-03-09 10:13:51 +01:00
Andreas Süßenbach
5f649a999b
Merge pull request #1233 from theHamsta/dont-repeat-update
ci: only create a header update PR if tag does not yet exist
2022-03-08 15:14:58 +01:00
Andreas Süßenbach
d493aa4ab6
Merge pull request #1234 from theHamsta/fix-warnings
chore(warnings): fix warnings about unused variables in Release mode
2022-03-08 13:57:29 +01:00
Stephan Seitz
bafe3240d7 ci: only create a header update PR if tag does not yet exist 2022-03-08 13:43:23 +01:00
Stephan Seitz
c747ca4588 chore(warnings): fix warnings about unused variables in Release mode
```
/home/stephan/projects/Vulkan-Hpp/VulkanHppGenerator.cpp:9105:12: error: unused variable 'constructorCommandIt' [-Werror,-Wunused-variable]
      auto constructorCommandIt = m_commands.find( handle.second.constructorIts.front()->first );
           ^
/home/stephan/projects/Vulkan-Hpp/VulkanHppGenerator.cpp:9732:12: error: unused variable 'handleIt' [-Werror,-Wunused-variable]
      auto handleIt = m_handles.find( "Vk" + parentType );
```
2022-03-08 11:46:03 +01:00
Andreas Süßenbach
9df5974983
Merge pull request #1232 from asuessenbach/cleanup
Add template parameter support to generateCommandVoidGetChain.
2022-03-08 11:06:14 +01:00
asuessenbach
7be761b203 Add template parameter support to generateCommandVoidGetChain. 2022-03-08 09:11:11 +01:00
Andreas Süßenbach
2d5c2f44cc
Merge pull request #1230 from asuessenbach/cleanup
Add template parameter support to generateCommandVoidGetValue.
2022-03-07 14:58:10 +01:00
Andreas Süßenbach
e8c6a3c682
Merge pull request #1229 from asuessenbach/format
Make test/FormatTraits.cpp valid for C++11.
2022-03-07 12:20:16 +01:00
asuessenbach
04cca4cfbc Add template parameter support to generateCommandVoidGetValue. 2022-03-07 12:19:32 +01:00
asuessenbach
7e6083e5b2 Make test/FormatTraits.cpp valid for C++11. 2022-03-07 10:15:27 +01:00
Andreas Süßenbach
1f697d86cb
Merge pull request #1225 from asuessenbach/function
Combine two types of commands into one generation function.
2022-03-07 09:20:38 +01:00
Andreas Süßenbach
64f290be71
Merge pull request #1224 from asuessenbach/warning
Disable init-list-lifetime warning with tests in ArrayProxyNoTemporaries.cpp
2022-03-02 17:58:10 +01:00
asuessenbach
02cd5ee1c9 Combine two types of commands into one generation function. 2022-03-02 17:57:36 +01:00