Skip to content

Commit

Permalink
Updated code-gen vulkan/* files
Browse files Browse the repository at this point in the history
  • Loading branch information
siukosev committed Jul 22, 2024
1 parent 83dbdb5 commit 11771cf
Show file tree
Hide file tree
Showing 8 changed files with 1,573 additions and 603 deletions.
3 changes: 2 additions & 1 deletion vulkan/vulkan.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export namespace VULKAN_HPP_NAMESPACE
using VULKAN_HPP_NAMESPACE::UniqueHandle;
#endif /*VULKAN_HPP_NO_SMART_HANDLE*/

using VULKAN_HPP_NAMESPACE::exchange;

//==================
//=== BASE TYPEs ===
//==================
Expand Down Expand Up @@ -4799,7 +4801,6 @@ export namespace VULKAN_HPP_NAMESPACE
using VULKAN_HPP_RAII_NAMESPACE::Context;
using VULKAN_HPP_RAII_NAMESPACE::ContextDispatcher;
using VULKAN_HPP_RAII_NAMESPACE::DeviceDispatcher;
using VULKAN_HPP_RAII_NAMESPACE::exchange;
using VULKAN_HPP_RAII_NAMESPACE::InstanceDispatcher;

//====================
Expand Down
13 changes: 13 additions & 0 deletions vulkan/vulkan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <array> // ArrayWrapperND
#include <string.h> // strnlen
#include <string> // std::string
#include <utility> // std::exchange
#include <vulkan/vulkan.h>
#include <vulkan/vulkan_hpp_macros.hpp>

Expand Down Expand Up @@ -5882,6 +5883,18 @@ namespace VULKAN_HPP_NAMESPACE
}
#endif

#if ( 14 <= VULKAN_HPP_CPP_VERSION )
using std::exchange;
#else
template <class T, class U = T>
VULKAN_HPP_CONSTEXPR_14 VULKAN_HPP_INLINE T exchange( T & obj, U && newValue )
{
T oldValue = std::move( obj );
obj = std::forward<U>( newValue );
return oldValue;
}
#endif

#if !defined( VULKAN_HPP_NO_SMART_HANDLE )
struct AllocationCallbacks;

Expand Down
809 changes: 700 additions & 109 deletions vulkan/vulkan_handles.hpp

Large diffs are not rendered by default.

496 changes: 242 additions & 254 deletions vulkan/vulkan_raii.hpp

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion vulkan/vulkansc.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export namespace VULKAN_HPP_NAMESPACE
using VULKAN_HPP_NAMESPACE::UniqueHandle;
#endif /*VULKAN_HPP_NO_SMART_HANDLE*/

using VULKAN_HPP_NAMESPACE::exchange;

//==================
//=== BASE TYPEs ===
//==================
Expand Down Expand Up @@ -1835,7 +1837,6 @@ export namespace VULKAN_HPP_NAMESPACE
using VULKAN_HPP_RAII_NAMESPACE::Context;
using VULKAN_HPP_RAII_NAMESPACE::ContextDispatcher;
using VULKAN_HPP_RAII_NAMESPACE::DeviceDispatcher;
using VULKAN_HPP_RAII_NAMESPACE::exchange;
using VULKAN_HPP_RAII_NAMESPACE::InstanceDispatcher;

//====================
Expand Down
13 changes: 13 additions & 0 deletions vulkan/vulkansc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <array> // ArrayWrapperND
#include <string.h> // strnlen
#include <string> // std::string
#include <utility> // std::exchange
#include <vulkan/vulkan_hpp_macros.hpp>
#include <vulkan/vulkan_sc_core.h>

Expand Down Expand Up @@ -3151,6 +3152,18 @@ namespace VULKAN_HPP_NAMESPACE
}
#endif

#if ( 14 <= VULKAN_HPP_CPP_VERSION )
using std::exchange;
#else
template <class T, class U = T>
VULKAN_HPP_CONSTEXPR_14 VULKAN_HPP_INLINE T exchange( T & obj, U && newValue )
{
T oldValue = std::move( obj );
obj = std::forward<U>( newValue );
return oldValue;
}
#endif

#if !defined( VULKAN_HPP_NO_SMART_HANDLE )
struct AllocationCallbacks;

Expand Down
Loading

0 comments on commit 11771cf

Please sign in to comment.