mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Use [[deprecated]] only if __has_cpp_attribute(deprecated) is true
This commit is contained in:
parent
c7c375eb98
commit
5953d65c16
@ -1811,7 +1811,7 @@ void VulkanHppGenerator::appendEnums( std::string & str ) const
|
|||||||
{
|
{
|
||||||
str += R"(
|
str += R"(
|
||||||
template<ObjectType value>
|
template<ObjectType value>
|
||||||
struct [[deprecated("vk::cpp_type is deprecated. Use vk::CppType instead.")]] cpp_type
|
struct VULKAN_HPP_DEPRECATED("vk::cpp_type is deprecated. Use vk::CppType instead.") cpp_type
|
||||||
{};
|
{};
|
||||||
)";
|
)";
|
||||||
}
|
}
|
||||||
@ -3267,7 +3267,7 @@ ${commands}
|
|||||||
static_assert( sizeof( ${className} ) == sizeof( Vk${className} ), "handle and wrapper have different size!" );
|
static_assert( sizeof( ${className} ) == sizeof( Vk${className} ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated("vk::cpp_type is deprecated. Use vk::CppType instead.")]] cpp_type<ObjectType::e${className}>
|
struct VULKAN_HPP_DEPRECATED("vk::cpp_type is deprecated. Use vk::CppType instead.") cpp_type<ObjectType::e${className}>
|
||||||
{
|
{
|
||||||
using type = ${className};
|
using type = ${className};
|
||||||
};
|
};
|
||||||
@ -7612,6 +7612,15 @@ int main( int argc, char ** argv )
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __has_cpp_attribute // Check if __has_cpp_attribute is present
|
||||||
|
# if __has_cpp_attribute(deprecated) // Check for an attribute
|
||||||
|
# define VULKAN_HPP_DEPRECATED(msg) [[deprecated(msg)]]
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
#ifndef VULKAN_HPP_DEPRECATED
|
||||||
|
# define VULKAN_HPP_DEPRECATED( msg )
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_NAMESPACE)
|
#if !defined(VULKAN_HPP_NAMESPACE)
|
||||||
#define VULKAN_HPP_NAMESPACE vk
|
#define VULKAN_HPP_NAMESPACE vk
|
||||||
#endif
|
#endif
|
||||||
|
@ -171,6 +171,15 @@ static_assert( VK_HEADER_VERSION == 137, "Wrong VK_HEADER_VERSION!" );
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __has_cpp_attribute // Check if __has_cpp_attribute is present
|
||||||
|
# if __has_cpp_attribute( deprecated ) // Check for an attribute
|
||||||
|
# define VULKAN_HPP_DEPRECATED( msg ) [[deprecated( msg )]]
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
#ifndef VULKAN_HPP_DEPRECATED
|
||||||
|
# define VULKAN_HPP_DEPRECATED( msg )
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined( VULKAN_HPP_NAMESPACE )
|
#if !defined( VULKAN_HPP_NAMESPACE )
|
||||||
# define VULKAN_HPP_NAMESPACE vk
|
# define VULKAN_HPP_NAMESPACE vk
|
||||||
#endif
|
#endif
|
||||||
@ -7464,7 +7473,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <ObjectType value>
|
template <ObjectType value>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type{};
|
struct VULKAN_HPP_DEPRECATED( "vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type
|
||||||
|
{};
|
||||||
|
|
||||||
enum class PeerMemoryFeatureFlagBits : VkPeerMemoryFeatureFlags
|
enum class PeerMemoryFeatureFlagBits : VkPeerMemoryFeatureFlags
|
||||||
{
|
{
|
||||||
@ -16748,7 +16758,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( SurfaceKHR ) == sizeof( VkSurfaceKHR ), "handle and wrapper have different size!" );
|
static_assert( sizeof( SurfaceKHR ) == sizeof( VkSurfaceKHR ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eSurfaceKHR>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eSurfaceKHR>
|
||||||
{
|
{
|
||||||
using type = SurfaceKHR;
|
using type = SurfaceKHR;
|
||||||
};
|
};
|
||||||
@ -16833,8 +16844,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"handle and wrapper have different size!" );
|
"handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated(
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
"vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eDebugReportCallbackEXT>
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eDebugReportCallbackEXT>
|
||||||
{
|
{
|
||||||
using type = DebugReportCallbackEXT;
|
using type = DebugReportCallbackEXT;
|
||||||
};
|
};
|
||||||
@ -16919,8 +16930,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"handle and wrapper have different size!" );
|
"handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated(
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
"vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eDebugUtilsMessengerEXT>
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eDebugUtilsMessengerEXT>
|
||||||
{
|
{
|
||||||
using type = DebugUtilsMessengerEXT;
|
using type = DebugUtilsMessengerEXT;
|
||||||
};
|
};
|
||||||
@ -17000,7 +17011,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( DisplayKHR ) == sizeof( VkDisplayKHR ), "handle and wrapper have different size!" );
|
static_assert( sizeof( DisplayKHR ) == sizeof( VkDisplayKHR ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eDisplayKHR>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eDisplayKHR>
|
||||||
{
|
{
|
||||||
using type = DisplayKHR;
|
using type = DisplayKHR;
|
||||||
};
|
};
|
||||||
@ -17081,7 +17093,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( SwapchainKHR ) == sizeof( VkSwapchainKHR ), "handle and wrapper have different size!" );
|
static_assert( sizeof( SwapchainKHR ) == sizeof( VkSwapchainKHR ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eSwapchainKHR>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eSwapchainKHR>
|
||||||
{
|
{
|
||||||
using type = SwapchainKHR;
|
using type = SwapchainKHR;
|
||||||
};
|
};
|
||||||
@ -17160,7 +17173,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( Semaphore ) == sizeof( VkSemaphore ), "handle and wrapper have different size!" );
|
static_assert( sizeof( Semaphore ) == sizeof( VkSemaphore ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eSemaphore>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eSemaphore>
|
||||||
{
|
{
|
||||||
using type = Semaphore;
|
using type = Semaphore;
|
||||||
};
|
};
|
||||||
@ -17239,7 +17253,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( Fence ) == sizeof( VkFence ), "handle and wrapper have different size!" );
|
static_assert( sizeof( Fence ) == sizeof( VkFence ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eFence>
|
struct VULKAN_HPP_DEPRECATED( "vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eFence>
|
||||||
{
|
{
|
||||||
using type = Fence;
|
using type = Fence;
|
||||||
};
|
};
|
||||||
@ -17327,8 +17341,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"handle and wrapper have different size!" );
|
"handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated(
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
"vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::ePerformanceConfigurationINTEL>
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::ePerformanceConfigurationINTEL>
|
||||||
{
|
{
|
||||||
using type = PerformanceConfigurationINTEL;
|
using type = PerformanceConfigurationINTEL;
|
||||||
};
|
};
|
||||||
@ -17407,7 +17421,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( QueryPool ) == sizeof( VkQueryPool ), "handle and wrapper have different size!" );
|
static_assert( sizeof( QueryPool ) == sizeof( VkQueryPool ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eQueryPool>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eQueryPool>
|
||||||
{
|
{
|
||||||
using type = QueryPool;
|
using type = QueryPool;
|
||||||
};
|
};
|
||||||
@ -17486,7 +17501,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( Buffer ) == sizeof( VkBuffer ), "handle and wrapper have different size!" );
|
static_assert( sizeof( Buffer ) == sizeof( VkBuffer ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eBuffer>
|
struct VULKAN_HPP_DEPRECATED( "vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eBuffer>
|
||||||
{
|
{
|
||||||
using type = Buffer;
|
using type = Buffer;
|
||||||
};
|
};
|
||||||
@ -17567,7 +17582,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( PipelineLayout ) == sizeof( VkPipelineLayout ), "handle and wrapper have different size!" );
|
static_assert( sizeof( PipelineLayout ) == sizeof( VkPipelineLayout ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::ePipelineLayout>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::ePipelineLayout>
|
||||||
{
|
{
|
||||||
using type = PipelineLayout;
|
using type = PipelineLayout;
|
||||||
};
|
};
|
||||||
@ -17648,7 +17664,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( DescriptorSet ) == sizeof( VkDescriptorSet ), "handle and wrapper have different size!" );
|
static_assert( sizeof( DescriptorSet ) == sizeof( VkDescriptorSet ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eDescriptorSet>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eDescriptorSet>
|
||||||
{
|
{
|
||||||
using type = DescriptorSet;
|
using type = DescriptorSet;
|
||||||
};
|
};
|
||||||
@ -17727,7 +17744,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( Pipeline ) == sizeof( VkPipeline ), "handle and wrapper have different size!" );
|
static_assert( sizeof( Pipeline ) == sizeof( VkPipeline ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::ePipeline>
|
struct VULKAN_HPP_DEPRECATED( "vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::ePipeline>
|
||||||
{
|
{
|
||||||
using type = Pipeline;
|
using type = Pipeline;
|
||||||
};
|
};
|
||||||
@ -17806,7 +17823,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( ImageView ) == sizeof( VkImageView ), "handle and wrapper have different size!" );
|
static_assert( sizeof( ImageView ) == sizeof( VkImageView ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eImageView>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eImageView>
|
||||||
{
|
{
|
||||||
using type = ImageView;
|
using type = ImageView;
|
||||||
};
|
};
|
||||||
@ -17885,7 +17903,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( Image ) == sizeof( VkImage ), "handle and wrapper have different size!" );
|
static_assert( sizeof( Image ) == sizeof( VkImage ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eImage>
|
struct VULKAN_HPP_DEPRECATED( "vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eImage>
|
||||||
{
|
{
|
||||||
using type = Image;
|
using type = Image;
|
||||||
};
|
};
|
||||||
@ -17971,8 +17989,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"handle and wrapper have different size!" );
|
"handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated(
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
"vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eAccelerationStructureKHR>
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eAccelerationStructureKHR>
|
||||||
{
|
{
|
||||||
using type = AccelerationStructureKHR;
|
using type = AccelerationStructureKHR;
|
||||||
};
|
};
|
||||||
@ -18059,8 +18077,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"handle and wrapper have different size!" );
|
"handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated(
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
"vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eDescriptorUpdateTemplate>
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eDescriptorUpdateTemplate>
|
||||||
{
|
{
|
||||||
using type = DescriptorUpdateTemplate;
|
using type = DescriptorUpdateTemplate;
|
||||||
};
|
};
|
||||||
@ -18140,7 +18158,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( Event ) == sizeof( VkEvent ), "handle and wrapper have different size!" );
|
static_assert( sizeof( Event ) == sizeof( VkEvent ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eEvent>
|
struct VULKAN_HPP_DEPRECATED( "vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eEvent>
|
||||||
{
|
{
|
||||||
using type = Event;
|
using type = Event;
|
||||||
};
|
};
|
||||||
@ -19345,7 +19363,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( CommandBuffer ) == sizeof( VkCommandBuffer ), "handle and wrapper have different size!" );
|
static_assert( sizeof( CommandBuffer ) == sizeof( VkCommandBuffer ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eCommandBuffer>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eCommandBuffer>
|
||||||
{
|
{
|
||||||
using type = CommandBuffer;
|
using type = CommandBuffer;
|
||||||
};
|
};
|
||||||
@ -19426,7 +19445,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( DeviceMemory ) == sizeof( VkDeviceMemory ), "handle and wrapper have different size!" );
|
static_assert( sizeof( DeviceMemory ) == sizeof( VkDeviceMemory ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eDeviceMemory>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eDeviceMemory>
|
||||||
{
|
{
|
||||||
using type = DeviceMemory;
|
using type = DeviceMemory;
|
||||||
};
|
};
|
||||||
@ -19506,7 +19526,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( BufferView ) == sizeof( VkBufferView ), "handle and wrapper have different size!" );
|
static_assert( sizeof( BufferView ) == sizeof( VkBufferView ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eBufferView>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eBufferView>
|
||||||
{
|
{
|
||||||
using type = BufferView;
|
using type = BufferView;
|
||||||
};
|
};
|
||||||
@ -19587,7 +19608,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( CommandPool ) == sizeof( VkCommandPool ), "handle and wrapper have different size!" );
|
static_assert( sizeof( CommandPool ) == sizeof( VkCommandPool ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eCommandPool>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eCommandPool>
|
||||||
{
|
{
|
||||||
using type = CommandPool;
|
using type = CommandPool;
|
||||||
};
|
};
|
||||||
@ -19668,7 +19690,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( PipelineCache ) == sizeof( VkPipelineCache ), "handle and wrapper have different size!" );
|
static_assert( sizeof( PipelineCache ) == sizeof( VkPipelineCache ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::ePipelineCache>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::ePipelineCache>
|
||||||
{
|
{
|
||||||
using type = PipelineCache;
|
using type = PipelineCache;
|
||||||
};
|
};
|
||||||
@ -19753,8 +19776,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"handle and wrapper have different size!" );
|
"handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eDeferredOperationKHR>
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eDeferredOperationKHR>
|
||||||
{
|
{
|
||||||
using type = DeferredOperationKHR;
|
using type = DeferredOperationKHR;
|
||||||
};
|
};
|
||||||
@ -19836,7 +19859,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( DescriptorPool ) == sizeof( VkDescriptorPool ), "handle and wrapper have different size!" );
|
static_assert( sizeof( DescriptorPool ) == sizeof( VkDescriptorPool ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eDescriptorPool>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eDescriptorPool>
|
||||||
{
|
{
|
||||||
using type = DescriptorPool;
|
using type = DescriptorPool;
|
||||||
};
|
};
|
||||||
@ -19920,8 +19944,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"handle and wrapper have different size!" );
|
"handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eDescriptorSetLayout>
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eDescriptorSetLayout>
|
||||||
{
|
{
|
||||||
using type = DescriptorSetLayout;
|
using type = DescriptorSetLayout;
|
||||||
};
|
};
|
||||||
@ -20002,7 +20026,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( Framebuffer ) == sizeof( VkFramebuffer ), "handle and wrapper have different size!" );
|
static_assert( sizeof( Framebuffer ) == sizeof( VkFramebuffer ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eFramebuffer>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eFramebuffer>
|
||||||
{
|
{
|
||||||
using type = Framebuffer;
|
using type = Framebuffer;
|
||||||
};
|
};
|
||||||
@ -20088,8 +20113,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"handle and wrapper have different size!" );
|
"handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated(
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
"vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eIndirectCommandsLayoutNV>
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eIndirectCommandsLayoutNV>
|
||||||
{
|
{
|
||||||
using type = IndirectCommandsLayoutNV;
|
using type = IndirectCommandsLayoutNV;
|
||||||
};
|
};
|
||||||
@ -20169,7 +20194,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( RenderPass ) == sizeof( VkRenderPass ), "handle and wrapper have different size!" );
|
static_assert( sizeof( RenderPass ) == sizeof( VkRenderPass ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eRenderPass>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eRenderPass>
|
||||||
{
|
{
|
||||||
using type = RenderPass;
|
using type = RenderPass;
|
||||||
};
|
};
|
||||||
@ -20248,7 +20274,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( Sampler ) == sizeof( VkSampler ), "handle and wrapper have different size!" );
|
static_assert( sizeof( Sampler ) == sizeof( VkSampler ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eSampler>
|
struct VULKAN_HPP_DEPRECATED( "vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eSampler>
|
||||||
{
|
{
|
||||||
using type = Sampler;
|
using type = Sampler;
|
||||||
};
|
};
|
||||||
@ -20333,8 +20359,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"handle and wrapper have different size!" );
|
"handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated(
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
"vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eSamplerYcbcrConversion>
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eSamplerYcbcrConversion>
|
||||||
{
|
{
|
||||||
using type = SamplerYcbcrConversion;
|
using type = SamplerYcbcrConversion;
|
||||||
};
|
};
|
||||||
@ -20416,7 +20442,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( ShaderModule ) == sizeof( VkShaderModule ), "handle and wrapper have different size!" );
|
static_assert( sizeof( ShaderModule ) == sizeof( VkShaderModule ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eShaderModule>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eShaderModule>
|
||||||
{
|
{
|
||||||
using type = ShaderModule;
|
using type = ShaderModule;
|
||||||
};
|
};
|
||||||
@ -20500,8 +20527,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"handle and wrapper have different size!" );
|
"handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eValidationCacheEXT>
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eValidationCacheEXT>
|
||||||
{
|
{
|
||||||
using type = ValidationCacheEXT;
|
using type = ValidationCacheEXT;
|
||||||
};
|
};
|
||||||
@ -20668,7 +20695,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( Queue ) == sizeof( VkQueue ), "handle and wrapper have different size!" );
|
static_assert( sizeof( Queue ) == sizeof( VkQueue ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eQueue>
|
struct VULKAN_HPP_DEPRECATED( "vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eQueue>
|
||||||
{
|
{
|
||||||
using type = Queue;
|
using type = Queue;
|
||||||
};
|
};
|
||||||
@ -24234,7 +24261,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( Device ) == sizeof( VkDevice ), "handle and wrapper have different size!" );
|
static_assert( sizeof( Device ) == sizeof( VkDevice ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eDevice>
|
struct VULKAN_HPP_DEPRECATED( "vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eDevice>
|
||||||
{
|
{
|
||||||
using type = Device;
|
using type = Device;
|
||||||
};
|
};
|
||||||
@ -24315,7 +24342,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( DisplayModeKHR ) == sizeof( VkDisplayModeKHR ), "handle and wrapper have different size!" );
|
static_assert( sizeof( DisplayModeKHR ) == sizeof( VkDisplayModeKHR ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eDisplayModeKHR>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eDisplayModeKHR>
|
||||||
{
|
{
|
||||||
using type = DisplayModeKHR;
|
using type = DisplayModeKHR;
|
||||||
};
|
};
|
||||||
@ -25364,7 +25392,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( PhysicalDevice ) == sizeof( VkPhysicalDevice ), "handle and wrapper have different size!" );
|
static_assert( sizeof( PhysicalDevice ) == sizeof( VkPhysicalDevice ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::ePhysicalDevice>
|
struct VULKAN_HPP_DEPRECATED(
|
||||||
|
"vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::ePhysicalDevice>
|
||||||
{
|
{
|
||||||
using type = PhysicalDevice;
|
using type = PhysicalDevice;
|
||||||
};
|
};
|
||||||
@ -25957,7 +25986,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
static_assert( sizeof( Instance ) == sizeof( VkInstance ), "handle and wrapper have different size!" );
|
static_assert( sizeof( Instance ) == sizeof( VkInstance ), "handle and wrapper have different size!" );
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct [[deprecated( "vk::cpp_type is deprecated. Use vk::CppType instead." )]] cpp_type<ObjectType::eInstance>
|
struct VULKAN_HPP_DEPRECATED( "vk::cpp_type is deprecated. Use vk::CppType instead." ) cpp_type<ObjectType::eInstance>
|
||||||
{
|
{
|
||||||
using type = Instance;
|
using type = Instance;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user