Resolve deprecated-warnings on cpp_type.

This commit is contained in:
asuessenbach 2020-06-16 13:44:40 +02:00 committed by Markus Tavenrath
parent e83bd40ab5
commit d0a42307b6
3 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 9d2dfca53b754dd3ab916899fed567a5290c30aa Subproject commit f31524575668c6c483356bd54ca974590e31be8e

View File

@ -1807,7 +1807,7 @@ void VulkanHppGenerator::appendEnums( std::string & str ) const
{ {
str += R"( str += R"(
template<ObjectType value> template<ObjectType value>
struct VULKAN_HPP_DEPRECATED("vk::cpp_type is deprecated. Use vk::CppType instead.") cpp_type struct cpp_type
{}; {};
)"; )";
} }

View File

@ -52,7 +52,7 @@
# include <compare> # include <compare>
#endif #endif
static_assert( VK_HEADER_VERSION == 143, "Wrong VK_HEADER_VERSION!" ); static_assert( VK_HEADER_VERSION == 144, "Wrong VK_HEADER_VERSION!" );
// 32-bit vulkan is not typesafe for handles, so don't allow copy constructors on this platform by default. // 32-bit vulkan is not typesafe for handles, so don't allow copy constructors on this platform by default.
// To enable this feature on 32-bit platforms please define VULKAN_HPP_TYPESAFE_CONVERSION // To enable this feature on 32-bit platforms please define VULKAN_HPP_TYPESAFE_CONVERSION
@ -7544,7 +7544,7 @@ namespace VULKAN_HPP_NAMESPACE
} }
template <ObjectType value> template <ObjectType value>
struct VULKAN_HPP_DEPRECATED( "vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type struct cpp_type
{}; {};
enum class PeerMemoryFeatureFlagBits : VkPeerMemoryFeatureFlags enum class PeerMemoryFeatureFlagBits : VkPeerMemoryFeatureFlags