diff --git a/third_party/vulkan/vulkan.cppm b/third_party/vulkan/vulkan.cppm index ca1df90..7b22ddb 100644 --- a/third_party/vulkan/vulkan.cppm +++ b/third_party/vulkan/vulkan.cppm @@ -1065,6 +1065,12 @@ export namespace VULKAN_HPP_NAMESPACE using VULKAN_HPP_NAMESPACE::ResolveImageFlagBitsKHR; using VULKAN_HPP_NAMESPACE::ResolveImageFlagsKHR; +#if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + using VULKAN_HPP_NAMESPACE::UbmSurfaceCreateFlagBitsSEC; + using VULKAN_HPP_NAMESPACE::UbmSurfaceCreateFlagsSEC; +#endif /*VK_USE_PLATFORM_UBM_SEC*/ + //========================= //=== Index Type Traits === //========================= @@ -3045,6 +3051,12 @@ export namespace VULKAN_HPP_NAMESPACE using VULKAN_HPP_NAMESPACE::EXTShaderSubgroupPartitionedExtensionName; using VULKAN_HPP_NAMESPACE::EXTShaderSubgroupPartitionedSpecVersion; +#if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + using VULKAN_HPP_NAMESPACE::SECUbmSurfaceExtensionName; + using VULKAN_HPP_NAMESPACE::SECUbmSurfaceSpecVersion; +#endif /*VK_USE_PLATFORM_UBM_SEC*/ + //======================== //=== CONSTEXPR VALUEs === //======================== @@ -5420,6 +5432,11 @@ export namespace VULKAN_HPP_NAMESPACE //=== VK_EXT_shader_subgroup_partitioned === using VULKAN_HPP_NAMESPACE::PhysicalDeviceShaderSubgroupPartitionedFeaturesEXT; +#if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + using VULKAN_HPP_NAMESPACE::UbmSurfaceCreateInfoSEC; +#endif /*VK_USE_PLATFORM_UBM_SEC*/ + //=============== //=== HANDLEs === //=============== @@ -9634,6 +9651,12 @@ export namespace std template <> struct hash; +#if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + template <> + struct hash; +#endif /*VK_USE_PLATFORM_UBM_SEC*/ + //================================================================= //=== Required exports for VULKAN_HPP_NAMESPACE::StructureChain === //================================================================= @@ -10855,4 +10878,10 @@ export //=== VK_NV_compute_occupancy_priority === using ::PFN_vkCmdSetComputeOccupancyPriorityNV; + +#if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + using ::PFN_vkCreateUbmSurfaceSEC; + using ::PFN_vkGetPhysicalDeviceUbmPresentationSupportSEC; +#endif /*VK_USE_PLATFORM_UBM_SEC*/ } diff --git a/third_party/vulkan/vulkan.hpp b/third_party/vulkan/vulkan.hpp index 215a43f..5291015 100644 --- a/third_party/vulkan/vulkan.hpp +++ b/third_party/vulkan/vulkan.hpp @@ -57,7 +57,7 @@ extern "C" __declspec( dllimport ) FARPROC __stdcall GetProcAddress( HINSTANCE h # endif #endif -VULKAN_HPP_STATIC_ASSERT( VK_HEADER_VERSION == 342, "Wrong VK_HEADER_VERSION!" ); +VULKAN_HPP_STATIC_ASSERT( VK_HEADER_VERSION == 343, "Wrong VK_HEADER_VERSION!" ); // includes through some other header // this results in major(x) being resolved to gnu_dev_major(x) @@ -1443,6 +1443,7 @@ namespace VULKAN_HPP_NAMESPACE DECLARE_IS_DISPATCHED( vkCreateSwapchainKHR ) DECLARE_IS_DISPATCHED( vkCreateTensorARM ) DECLARE_IS_DISPATCHED( vkCreateTensorViewARM ) + DECLARE_IS_DISPATCHED( vkCreateUbmSurfaceSEC ) DECLARE_IS_DISPATCHED( vkCreateValidationCacheEXT ) DECLARE_IS_DISPATCHED( vkCreateViSurfaceNN ) DECLARE_IS_DISPATCHED( vkCreateVideoSessionKHR ) @@ -1709,6 +1710,7 @@ namespace VULKAN_HPP_NAMESPACE DECLARE_IS_DISPATCHED( vkGetPhysicalDeviceSurfaceSupportKHR ) DECLARE_IS_DISPATCHED( vkGetPhysicalDeviceToolProperties ) DECLARE_IS_DISPATCHED( vkGetPhysicalDeviceToolPropertiesEXT ) + DECLARE_IS_DISPATCHED( vkGetPhysicalDeviceUbmPresentationSupportSEC ) DECLARE_IS_DISPATCHED( vkGetPhysicalDeviceVideoCapabilitiesKHR ) DECLARE_IS_DISPATCHED( vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR ) DECLARE_IS_DISPATCHED( vkGetPhysicalDeviceVideoFormatPropertiesKHR ) @@ -7552,6 +7554,25 @@ namespace VULKAN_HPP_NAMESPACE { return ::vkCmdSetComputeOccupancyPriorityNV( commandBuffer, pParameters ); } + +# if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + + VkResult vkCreateUbmSurfaceSEC( VkInstance instance, + const VkUbmSurfaceCreateInfoSEC * pCreateInfo, + const VkAllocationCallbacks * pAllocator, + VkSurfaceKHR * pSurface ) const VULKAN_HPP_NOEXCEPT + { + return ::vkCreateUbmSurfaceSEC( instance, pCreateInfo, pAllocator, pSurface ); + } + + VkBool32 vkGetPhysicalDeviceUbmPresentationSupportSEC( VkPhysicalDevice physicalDevice, + uint32_t queueFamilyIndex, + struct ubm_device * ubm_device ) const VULKAN_HPP_NOEXCEPT + { + return ::vkGetPhysicalDeviceUbmPresentationSupportSEC( physicalDevice, queueFamilyIndex, ubm_device ); + } +# endif /*VK_USE_PLATFORM_UBM_SEC*/ }; inline DispatchLoaderStatic & getDispatchLoaderStatic() @@ -10619,6 +10640,12 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_CONSTEXPR_INLINE auto EXTShaderSubgroupPartitionedSpecVersion = VK_EXT_SHADER_SUBGROUP_PARTITIONED_SPEC_VERSION; VULKAN_HPP_CONSTEXPR_INLINE auto EXTShaderSubgroupPartitionedExtensionName = VK_EXT_SHADER_SUBGROUP_PARTITIONED_EXTENSION_NAME; +#if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + VULKAN_HPP_CONSTEXPR_INLINE auto SECUbmSurfaceSpecVersion = VK_SEC_UBM_SURFACE_SPEC_VERSION; + VULKAN_HPP_CONSTEXPR_INLINE auto SECUbmSurfaceExtensionName = VK_SEC_UBM_SURFACE_EXTENSION_NAME; +#endif /*VK_USE_PLATFORM_UBM_SEC*/ + } // namespace VULKAN_HPP_NAMESPACE // clang-format off @@ -22725,6 +22752,15 @@ namespace VULKAN_HPP_NAMESPACE //=== VK_NV_compute_occupancy_priority === PFN_vkCmdSetComputeOccupancyPriorityNV vkCmdSetComputeOccupancyPriorityNV = 0; +#if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + PFN_vkCreateUbmSurfaceSEC vkCreateUbmSurfaceSEC = 0; + PFN_vkGetPhysicalDeviceUbmPresentationSupportSEC vkGetPhysicalDeviceUbmPresentationSupportSEC = 0; +#else + PFN_dummy vkCreateUbmSurfaceSEC_placeholder = 0; + PFN_dummy vkGetPhysicalDeviceUbmPresentationSupportSEC_placeholder = 0; +#endif /*VK_USE_PLATFORM_UBM_SEC*/ + public: DispatchLoaderDynamic() VULKAN_HPP_NOEXCEPT = default; DispatchLoaderDynamic( DispatchLoaderDynamic const & rhs ) VULKAN_HPP_NOEXCEPT = default; @@ -24388,6 +24424,13 @@ namespace VULKAN_HPP_NAMESPACE //=== VK_NV_compute_occupancy_priority === vkCmdSetComputeOccupancyPriorityNV = PFN_vkCmdSetComputeOccupancyPriorityNV( vkGetInstanceProcAddr( instance, "vkCmdSetComputeOccupancyPriorityNV" ) ); + +#if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + vkCreateUbmSurfaceSEC = PFN_vkCreateUbmSurfaceSEC( vkGetInstanceProcAddr( instance, "vkCreateUbmSurfaceSEC" ) ); + vkGetPhysicalDeviceUbmPresentationSupportSEC = + PFN_vkGetPhysicalDeviceUbmPresentationSupportSEC( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceUbmPresentationSupportSEC" ) ); +#endif /*VK_USE_PLATFORM_UBM_SEC*/ } void init( Device deviceCpp ) VULKAN_HPP_NOEXCEPT diff --git a/third_party/vulkan/vulkan_core.h b/third_party/vulkan/vulkan_core.h index edeb412..a48e82b 100644 --- a/third_party/vulkan/vulkan_core.h +++ b/third_party/vulkan/vulkan_core.h @@ -66,7 +66,7 @@ extern "C" { //#define VK_API_VERSION VK_MAKE_API_VERSION(0, 1, 0, 0) // Patch version should always be set to 0 // Version of this file -#define VK_HEADER_VERSION 342 +#define VK_HEADER_VERSION 343 // Complete version of this file #define VK_HEADER_VERSION_COMPLETE VK_MAKE_API_VERSION(0, 1, 4, VK_HEADER_VERSION) @@ -1406,6 +1406,7 @@ typedef enum VkStructureType { VK_STRUCTURE_TYPE_COMPUTE_OCCUPANCY_PRIORITY_PARAMETERS_NV = 1000645000, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_OCCUPANCY_PRIORITY_FEATURES_NV = 1000645001, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_PARTITIONED_FEATURES_EXT = 1000662000, + VK_STRUCTURE_TYPE_UBM_SURFACE_CREATE_INFO_SEC = 1000664000, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTER_FEATURES = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETER_FEATURES = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES, // VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT is a legacy alias @@ -2086,6 +2087,9 @@ typedef enum VkFormat { VK_FORMAT_ASTC_6x6x6_SRGB_BLOCK_EXT = 1000288028, VK_FORMAT_ASTC_6x6x6_SFLOAT_BLOCK_EXT = 1000288029, VK_FORMAT_R8_BOOL_ARM = 1000460000, + VK_FORMAT_R16_SFLOAT_FPENCODING_BFLOAT16_ARM = 1000460001, + VK_FORMAT_R8_SFLOAT_FPENCODING_FLOAT8E4M3_ARM = 1000460002, + VK_FORMAT_R8_SFLOAT_FPENCODING_FLOAT8E5M2_ARM = 1000460003, VK_FORMAT_R16G16_SFIXED5_NV = 1000464000, VK_FORMAT_R10X6_UINT_PACK16_ARM = 1000609000, VK_FORMAT_R10X6G10X6_UINT_2PACK16_ARM = 1000609001, @@ -21682,7 +21686,7 @@ typedef struct VkDirectDriverLoadingListLUNARG { // VK_ARM_tensors is a preprocessor guard. Do not pass it to API calls. #define VK_ARM_tensors 1 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkTensorViewARM) -#define VK_ARM_TENSORS_SPEC_VERSION 1 +#define VK_ARM_TENSORS_SPEC_VERSION 2 #define VK_ARM_TENSORS_EXTENSION_NAME "VK_ARM_tensors" typedef enum VkTensorTilingARM { diff --git a/third_party/vulkan/vulkan_enums.hpp b/third_party/vulkan/vulkan_enums.hpp index bbb7544..3f15ca9 100644 --- a/third_party/vulkan/vulkan_enums.hpp +++ b/third_party/vulkan/vulkan_enums.hpp @@ -1781,7 +1781,10 @@ namespace VULKAN_HPP_NAMESPACE ePhysicalDeviceShaderUniformBufferUnsizedArrayFeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_UNIFORM_BUFFER_UNSIZED_ARRAY_FEATURES_EXT, eComputeOccupancyPriorityParametersNV = VK_STRUCTURE_TYPE_COMPUTE_OCCUPANCY_PRIORITY_PARAMETERS_NV, ePhysicalDeviceComputeOccupancyPriorityFeaturesNV = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_OCCUPANCY_PRIORITY_FEATURES_NV, - ePhysicalDeviceShaderSubgroupPartitionedFeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_PARTITIONED_FEATURES_EXT + ePhysicalDeviceShaderSubgroupPartitionedFeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_PARTITIONED_FEATURES_EXT, +#if defined( VK_USE_PLATFORM_UBM_SEC ) + eUbmSurfaceCreateInfoSEC = VK_STRUCTURE_TYPE_UBM_SURFACE_CREATE_INFO_SEC +#endif /*VK_USE_PLATFORM_UBM_SEC*/ }; // wrapper class for enum VkObjectType, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkObjectType.html @@ -2206,6 +2209,9 @@ namespace VULKAN_HPP_NAMESPACE eAstc6x6x6SrgbBlockEXT = VK_FORMAT_ASTC_6x6x6_SRGB_BLOCK_EXT, eAstc6x6x6SfloatBlockEXT = VK_FORMAT_ASTC_6x6x6_SFLOAT_BLOCK_EXT, eR8BoolARM = VK_FORMAT_R8_BOOL_ARM, + eR16SfloatFpencodingBfloat16ARM = VK_FORMAT_R16_SFLOAT_FPENCODING_BFLOAT16_ARM, + eR8SfloatFpencodingFloat8E4M3ARM = VK_FORMAT_R8_SFLOAT_FPENCODING_FLOAT8E4M3_ARM, + eR8SfloatFpencodingFloat8E5M2ARM = VK_FORMAT_R8_SFLOAT_FPENCODING_FLOAT8E5M2_ARM, eR16G16Sfixed5NV = VK_FORMAT_R16G16_SFIXED5_NV, eR16G16S105NV = VK_FORMAT_R16G16_S10_5_NV, eR10X6UintPack16ARM = VK_FORMAT_R10X6_UINT_PACK16_ARM, @@ -9653,6 +9659,24 @@ namespace VULKAN_HPP_NAMESPACE ResolveImageFlagBitsKHR::eSkipTransferFunction | ResolveImageFlagBitsKHR::eEnableTransferFunction; }; +#if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + + enum class UbmSurfaceCreateFlagBitsSEC : VkUbmSurfaceCreateFlagsSEC + { + }; + + // wrapper using for bitmask VkUbmSurfaceCreateFlagsSEC, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkUbmSurfaceCreateFlagsSEC.html + using UbmSurfaceCreateFlagsSEC = Flags; + + template <> + struct FlagTraits + { + static VULKAN_HPP_CONST_OR_CONSTEXPR bool isBitmask = true; + static VULKAN_HPP_CONST_OR_CONSTEXPR UbmSurfaceCreateFlagsSEC allFlags = {}; + }; +#endif /*VK_USE_PLATFORM_UBM_SEC*/ + //=========================================================== //=== Mapping from ObjectType to DebugReportObjectTypeEXT === //=========================================================== diff --git a/third_party/vulkan/vulkan_extension_inspection.hpp b/third_party/vulkan/vulkan_extension_inspection.hpp index 785dc5f..4870d60 100644 --- a/third_party/vulkan/vulkan_extension_inspection.hpp +++ b/third_party/vulkan/vulkan_extension_inspection.hpp @@ -596,8 +596,11 @@ namespace VULKAN_HPP_NAMESPACE "VK_EXT_layer_settings", "VK_NV_display_stereo", #if defined( VK_USE_PLATFORM_OHOS ) - "VK_OHOS_surface" + "VK_OHOS_surface", #endif /*VK_USE_PLATFORM_OHOS*/ +#if defined( VK_USE_PLATFORM_UBM_SEC ) + "VK_SEC_ubm_surface" +#endif /*VK_USE_PLATFORM_UBM_SEC*/ }; return instanceExtensions; } @@ -3070,6 +3073,14 @@ namespace VULKAN_HPP_NAMESPACE "VK_KHR_get_physical_device_properties2", } } }, { "VK_VERSION_1_1", { {} } } } } +#if defined( VK_USE_PLATFORM_UBM_SEC ) + , + { "VK_SEC_ubm_surface", + { { "VK_VERSION_1_0", + { { + "VK_KHR_surface", + } } } } } +#endif /*VK_USE_PLATFORM_UBM_SEC*/ }; auto depIt = dependencies.find( extension ); return ( depIt != dependencies.end() ) ? depIt->second : noDependencies; @@ -4100,6 +4111,9 @@ namespace VULKAN_HPP_NAMESPACE #if defined( VK_USE_PLATFORM_OHOS ) || ( extension == "VK_OHOS_surface" ) #endif /*VK_USE_PLATFORM_OHOS*/ +#if defined( VK_USE_PLATFORM_UBM_SEC ) + || ( extension == "VK_SEC_ubm_surface" ) +#endif /*VK_USE_PLATFORM_UBM_SEC*/ ; } diff --git a/third_party/vulkan/vulkan_format_traits.hpp b/third_party/vulkan/vulkan_format_traits.hpp index 54072b7..d23dd66 100644 --- a/third_party/vulkan/vulkan_format_traits.hpp +++ b/third_party/vulkan/vulkan_format_traits.hpp @@ -516,6 +516,9 @@ namespace VULKAN_HPP_NAMESPACE case Format::eAstc6x6x6SrgbBlockEXT : return 16; case Format::eAstc6x6x6SfloatBlockEXT : return 16; case Format::eR8BoolARM : return 1; + case Format::eR16SfloatFpencodingBfloat16ARM : return 2; + case Format::eR8SfloatFpencodingFloat8E4M3ARM : return 1; + case Format::eR8SfloatFpencodingFloat8E5M2ARM : return 1; case Format::eR16G16Sfixed5NV : return 4; case Format::eR10X6UintPack16ARM : return 2; case Format::eR10X6G10X6Uint2Pack16ARM : return 4; @@ -820,6 +823,9 @@ namespace VULKAN_HPP_NAMESPACE case Format::eAstc6x6x6SrgbBlockEXT : return "ASTC_6x6x6"; case Format::eAstc6x6x6SfloatBlockEXT : return "ASTC_6x6x6"; case Format::eR8BoolARM : return "8-bit"; + case Format::eR16SfloatFpencodingBfloat16ARM : return "16-bit"; + case Format::eR8SfloatFpencodingFloat8E4M3ARM : return "8-bit"; + case Format::eR8SfloatFpencodingFloat8E5M2ARM : return "8-bit"; case Format::eR16G16Sfixed5NV : return "32-bit"; case Format::eR10X6UintPack16ARM : return "16-bit"; case Format::eR10X6G10X6Uint2Pack16ARM : return "32-bit"; @@ -2237,6 +2243,24 @@ namespace VULKAN_HPP_NAMESPACE case 0 : return 8; default: VULKAN_HPP_ASSERT( false ); return 0; } + case Format::eR16SfloatFpencodingBfloat16ARM: + switch ( component ) + { + case 0 : return 16; + default: VULKAN_HPP_ASSERT( false ); return 0; + } + case Format::eR8SfloatFpencodingFloat8E4M3ARM: + switch ( component ) + { + case 0 : return 8; + default: VULKAN_HPP_ASSERT( false ); return 0; + } + case Format::eR8SfloatFpencodingFloat8E5M2ARM: + switch ( component ) + { + case 0 : return 8; + default: VULKAN_HPP_ASSERT( false ); return 0; + } case Format::eR16G16Sfixed5NV: switch ( component ) { @@ -2637,6 +2661,9 @@ namespace VULKAN_HPP_NAMESPACE case Format::eAstc6x6x6SrgbBlockEXT : return 4; case Format::eAstc6x6x6SfloatBlockEXT : return 4; case Format::eR8BoolARM : return 1; + case Format::eR16SfloatFpencodingBfloat16ARM : return 1; + case Format::eR8SfloatFpencodingFloat8E4M3ARM : return 1; + case Format::eR8SfloatFpencodingFloat8E5M2ARM : return 1; case Format::eR16G16Sfixed5NV : return 2; case Format::eR10X6UintPack16ARM : return 1; case Format::eR10X6G10X6Uint2Pack16ARM : return 2; @@ -4956,6 +4983,24 @@ namespace VULKAN_HPP_NAMESPACE case 0 : return "R"; default: VULKAN_HPP_ASSERT( false ); return ""; } + case Format::eR16SfloatFpencodingBfloat16ARM: + switch ( component ) + { + case 0 : return "R"; + default: VULKAN_HPP_ASSERT( false ); return ""; + } + case Format::eR8SfloatFpencodingFloat8E4M3ARM: + switch ( component ) + { + case 0 : return "R"; + default: VULKAN_HPP_ASSERT( false ); return ""; + } + case Format::eR8SfloatFpencodingFloat8E5M2ARM: + switch ( component ) + { + case 0 : return "R"; + default: VULKAN_HPP_ASSERT( false ); return ""; + } case Format::eR16G16Sfixed5NV: switch ( component ) { @@ -7371,6 +7416,24 @@ namespace VULKAN_HPP_NAMESPACE case 0 : return "BOOL"; default: VULKAN_HPP_ASSERT( false ); return ""; } + case Format::eR16SfloatFpencodingBfloat16ARM: + switch ( component ) + { + case 0 : return "SFLOAT"; + default: VULKAN_HPP_ASSERT( false ); return ""; + } + case Format::eR8SfloatFpencodingFloat8E4M3ARM: + switch ( component ) + { + case 0 : return "SFLOAT"; + default: VULKAN_HPP_ASSERT( false ); return ""; + } + case Format::eR8SfloatFpencodingFloat8E5M2ARM: + switch ( component ) + { + case 0 : return "SFLOAT"; + default: VULKAN_HPP_ASSERT( false ); return ""; + } case Format::eR16G16Sfixed5NV: switch ( component ) { @@ -8214,6 +8277,9 @@ namespace VULKAN_HPP_NAMESPACE Format::eAstc6x6x6SrgbBlockEXT, Format::eAstc6x6x6SfloatBlockEXT, Format::eR8BoolARM, + Format::eR16SfloatFpencodingBfloat16ARM, + Format::eR8SfloatFpencodingFloat8E4M3ARM, + Format::eR8SfloatFpencodingFloat8E5M2ARM, Format::eR16G16Sfixed5NV, Format::eR10X6UintPack16ARM, Format::eR10X6G10X6Uint2Pack16ARM, @@ -8507,6 +8573,9 @@ namespace VULKAN_HPP_NAMESPACE Format::eAstc6x6x6SrgbBlockEXT, Format::eAstc6x6x6SfloatBlockEXT, Format::eR8BoolARM, + Format::eR16SfloatFpencodingBfloat16ARM, + Format::eR8SfloatFpencodingFloat8E4M3ARM, + Format::eR8SfloatFpencodingFloat8E5M2ARM, Format::eR16G16Sfixed5NV, Format::eR10X6UintPack16ARM, Format::eR10X6G10X6Uint2Pack16ARM, @@ -9496,6 +9565,9 @@ namespace VULKAN_HPP_NAMESPACE case Format::eAstc6x6x6SrgbBlockEXT: case Format::eAstc6x6x6SfloatBlockEXT: case Format::eR8BoolARM: + case Format::eR16SfloatFpencodingBfloat16ARM: + case Format::eR8SfloatFpencodingFloat8E4M3ARM: + case Format::eR8SfloatFpencodingFloat8E5M2ARM: case Format::eR16G16Sfixed5NV: case Format::eR10X6UintPack16ARM: case Format::eR10X6G10X6Uint2Pack16ARM: @@ -10552,6 +10624,9 @@ namespace VULKAN_HPP_NAMESPACE case Format::eAstc6x6x6SrgbBlockEXT : return 216; case Format::eAstc6x6x6SfloatBlockEXT : return 216; case Format::eR8BoolARM : return 1; + case Format::eR16SfloatFpencodingBfloat16ARM : return 1; + case Format::eR8SfloatFpencodingFloat8E4M3ARM : return 1; + case Format::eR8SfloatFpencodingFloat8E5M2ARM : return 1; case Format::eR16G16Sfixed5NV : return 1; case Format::eR10X6UintPack16ARM : return 1; case Format::eR10X6G10X6Uint2Pack16ARM : return 1; diff --git a/third_party/vulkan/vulkan_funcs.hpp b/third_party/vulkan/vulkan_funcs.hpp index 41f3a2a..2a449f2 100644 --- a/third_party/vulkan/vulkan_funcs.hpp +++ b/third_party/vulkan/vulkan_funcs.hpp @@ -2011,7 +2011,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast( flags ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getQueryPoolResults", { Result::eSuccess, Result::eNotReady } ); - return ResultValue>( result, std::move( data ) ); + return { result, data }; } // wrapper function for command vkGetQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueryPoolResults.html @@ -2035,7 +2035,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast( flags ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getQueryPoolResult", { Result::eSuccess, Result::eNotReady } ); - return ResultValue( result, std::move( data ) ); + return { result, data }; } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -3776,7 +3776,7 @@ namespace VULKAN_HPP_NAMESPACE allocator.get(), d ); - return ResultValue>( result, std::move( pipelines ) ); + return { result, pipelines }; } // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html @@ -3811,7 +3811,7 @@ namespace VULKAN_HPP_NAMESPACE allocator.get(), d ); - return ResultValue>( result, std::move( pipelines ) ); + return { result, pipelines }; } // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html @@ -3835,7 +3835,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &pipeline ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createComputePipeline", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } ); - return ResultValue( result, std::move( pipeline ) ); + return { result, pipeline }; } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -4950,7 +4950,7 @@ namespace VULKAN_HPP_NAMESPACE allocator.get(), d ); - return ResultValue>( result, std::move( pipelines ) ); + return { result, pipelines }; } // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html @@ -4985,7 +4985,7 @@ namespace VULKAN_HPP_NAMESPACE allocator.get(), d ); - return ResultValue>( result, std::move( pipelines ) ); + return { result, pipelines }; } // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html @@ -5009,7 +5009,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &pipeline ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createGraphicsPipeline", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } ); - return ResultValue( result, std::move( pipeline ) ); + return { result, pipeline }; } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -9602,7 +9602,7 @@ namespace VULKAN_HPP_NAMESPACE result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquireNextImageKHR", { Result::eSuccess, Result::eTimeout, Result::eNotReady, Result::eSuboptimalKHR } ); # endif - return ResultValue( result, std::move( imageIndex ) ); + return { result, imageIndex }; } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -9825,7 +9825,7 @@ namespace VULKAN_HPP_NAMESPACE result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquireNextImage2KHR", { Result::eSuccess, Result::eTimeout, Result::eNotReady, Result::eSuboptimalKHR } ); # endif - return ResultValue( result, std::move( imageIndex ) ); + return { result, imageIndex }; } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -16667,7 +16667,7 @@ namespace VULKAN_HPP_NAMESPACE allocator.get(), d ); - return ResultValue>( result, std::move( pipelines ) ); + return { result, pipelines }; } // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see @@ -16704,7 +16704,7 @@ namespace VULKAN_HPP_NAMESPACE allocator.get(), d ); - return ResultValue>( result, std::move( pipelines ) ); + return { result, pipelines }; } // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see @@ -16731,7 +16731,7 @@ namespace VULKAN_HPP_NAMESPACE detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createExecutionGraphPipelineAMDX", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } ); - return ResultValue( result, std::move( pipeline ) ); + return { result, pipeline }; } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -17191,73 +17191,6 @@ namespace VULKAN_HPP_NAMESPACE static_cast( m_device ), imageCount, reinterpret_cast( pImages ), reinterpret_cast( pDatas ) ) ); } -#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE - // wrapper function for command vkGetImageOpaqueCaptureDataEXT, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDataEXT.html - template ::value, int>::type, - typename std::enable_if::type> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType>::type - Device::getImageOpaqueCaptureDataEXT( ArrayProxy const & images, Dispatch const & d ) const - { - VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); -# if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) - VULKAN_HPP_ASSERT( d.vkGetImageOpaqueCaptureDataEXT && "Function requires " ); -# endif - - std::vector datas( images.size() ); - Result result = static_cast( d.vkGetImageOpaqueCaptureDataEXT( - m_device, images.size(), reinterpret_cast( images.data() ), reinterpret_cast( datas.data() ) ) ); - detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageOpaqueCaptureDataEXT" ); - - return detail::createResultValueType( result, std::move( datas ) ); - } - - // wrapper function for command vkGetImageOpaqueCaptureDataEXT, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDataEXT.html - template ::value, int>::type, - typename std::enable_if::type> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType>::type - Device::getImageOpaqueCaptureDataEXT( ArrayProxy const & images, - HostAddressRangeEXTAllocator const & hostAddressRangeEXTAllocator, - Dispatch const & d ) const - { - VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); -# if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) - VULKAN_HPP_ASSERT( d.vkGetImageOpaqueCaptureDataEXT && "Function requires " ); -# endif - - std::vector datas( images.size(), {}, hostAddressRangeEXTAllocator ); - Result result = static_cast( d.vkGetImageOpaqueCaptureDataEXT( - m_device, images.size(), reinterpret_cast( images.data() ), reinterpret_cast( datas.data() ) ) ); - detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageOpaqueCaptureDataEXT" ); - - return detail::createResultValueType( result, std::move( datas ) ); - } - - // wrapper function for command vkGetImageOpaqueCaptureDataEXT, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDataEXT.html - template ::type> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType::type Device::getImageOpaqueCaptureDataEXT( const Image & image, - Dispatch const & d ) const - { - VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); -# if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) - VULKAN_HPP_ASSERT( d.vkGetImageOpaqueCaptureDataEXT && "Function requires " ); -# endif - - HostAddressRangeEXT data; - Result result = static_cast( - d.vkGetImageOpaqueCaptureDataEXT( m_device, 1, reinterpret_cast( &image ), reinterpret_cast( &data ) ) ); - detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageOpaqueCaptureDataEXT" ); - - return detail::createResultValueType( result, std::move( data ) ); - } -#endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ - // wrapper function for command vkGetPhysicalDeviceDescriptorSizeEXT, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDescriptorSizeEXT.html template ::type> @@ -17328,73 +17261,6 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( pDatas ) ) ); } -#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE - // wrapper function for command vkGetTensorOpaqueCaptureDataARM, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDataARM.html - template ::value, int>::type, - typename std::enable_if::type> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType>::type - Device::getTensorOpaqueCaptureDataARM( ArrayProxy const & tensors, Dispatch const & d ) const - { - VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); -# if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) - VULKAN_HPP_ASSERT( d.vkGetTensorOpaqueCaptureDataARM && "Function requires " ); -# endif - - std::vector datas( tensors.size() ); - Result result = static_cast( d.vkGetTensorOpaqueCaptureDataARM( - m_device, tensors.size(), reinterpret_cast( tensors.data() ), reinterpret_cast( datas.data() ) ) ); - detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getTensorOpaqueCaptureDataARM" ); - - return detail::createResultValueType( result, std::move( datas ) ); - } - - // wrapper function for command vkGetTensorOpaqueCaptureDataARM, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDataARM.html - template ::value, int>::type, - typename std::enable_if::type> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType>::type - Device::getTensorOpaqueCaptureDataARM( ArrayProxy const & tensors, - HostAddressRangeEXTAllocator const & hostAddressRangeEXTAllocator, - Dispatch const & d ) const - { - VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); -# if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) - VULKAN_HPP_ASSERT( d.vkGetTensorOpaqueCaptureDataARM && "Function requires " ); -# endif - - std::vector datas( tensors.size(), {}, hostAddressRangeEXTAllocator ); - Result result = static_cast( d.vkGetTensorOpaqueCaptureDataARM( - m_device, tensors.size(), reinterpret_cast( tensors.data() ), reinterpret_cast( datas.data() ) ) ); - detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getTensorOpaqueCaptureDataARM" ); - - return detail::createResultValueType( result, std::move( datas ) ); - } - - // wrapper function for command vkGetTensorOpaqueCaptureDataARM, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDataARM.html - template ::type> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType::type Device::getTensorOpaqueCaptureDataARM( const TensorARM & tensor, - Dispatch const & d ) const - { - VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); -# if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) - VULKAN_HPP_ASSERT( d.vkGetTensorOpaqueCaptureDataARM && "Function requires " ); -# endif - - HostAddressRangeEXT data; - Result result = static_cast( - d.vkGetTensorOpaqueCaptureDataARM( m_device, 1, reinterpret_cast( &tensor ), reinterpret_cast( &data ) ) ); - detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getTensorOpaqueCaptureDataARM" ); - - return detail::createResultValueType( result, std::move( data ) ); - } -#endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ - //=== VK_EXT_sample_locations === // wrapper function for command vkCmdSetSampleLocationsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetSampleLocationsEXT.html @@ -18485,7 +18351,7 @@ namespace VULKAN_HPP_NAMESPACE allocator.get(), d ); - return ResultValue>( result, std::move( pipelines ) ); + return { result, pipelines }; } // wrapper function for command vkCreateRayTracingPipelinesKHR, see @@ -18523,7 +18389,7 @@ namespace VULKAN_HPP_NAMESPACE allocator.get(), d ); - return ResultValue>( result, std::move( pipelines ) ); + return { result, pipelines }; } // wrapper function for command vkCreateRayTracingPipelinesKHR, see @@ -18552,7 +18418,7 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelineKHR", { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR, Result::ePipelineCompileRequiredEXT } ); - return ResultValue( result, std::move( pipeline ) ); + return { result, pipeline }; } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -19739,7 +19605,7 @@ namespace VULKAN_HPP_NAMESPACE allocator.get(), d ); - return ResultValue>( result, std::move( pipelines ) ); + return { result, pipelines }; } // wrapper function for command vkCreateRayTracingPipelinesNV, see @@ -19775,7 +19641,7 @@ namespace VULKAN_HPP_NAMESPACE allocator.get(), d ); - return ResultValue>( result, std::move( pipelines ) ); + return { result, pipelines }; } // wrapper function for command vkCreateRayTracingPipelinesNV, see @@ -19801,7 +19667,7 @@ namespace VULKAN_HPP_NAMESPACE detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelineNV", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } ); - return ResultValue( result, std::move( pipeline ) ); + return { result, pipeline }; } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -20863,7 +20729,7 @@ namespace VULKAN_HPP_NAMESPACE &swapchainTimingPropertiesCounter ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainTimingPropertiesEXT", { Result::eSuccess, Result::eNotReady } ); - return ResultValue>( result, std::move( data_ ) ); + return { result, data_ }; } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -22836,100 +22702,6 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( pInternalRepresentations ) ) ); } -#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE - // wrapper function for command vkGetPipelineExecutableInternalRepresentationsKHR, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableInternalRepresentationsKHR.html - template ::value, - int>::type, - typename std::enable_if::type> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE - typename ResultValueType>::type - Device::getPipelineExecutableInternalRepresentationsKHR( const PipelineExecutableInfoKHR & executableInfo, Dispatch const & d ) const - { - VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); -# if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) - VULKAN_HPP_ASSERT( d.vkGetPipelineExecutableInternalRepresentationsKHR && - "Function requires " ); -# endif - - std::vector internalRepresentations; - uint32_t internalRepresentationCount; - Result result; - do - { - result = static_cast( d.vkGetPipelineExecutableInternalRepresentationsKHR( - m_device, reinterpret_cast( &executableInfo ), &internalRepresentationCount, nullptr ) ); - if ( ( result == Result::eSuccess ) && internalRepresentationCount ) - { - internalRepresentations.resize( internalRepresentationCount ); - result = static_cast( d.vkGetPipelineExecutableInternalRepresentationsKHR( - m_device, - reinterpret_cast( &executableInfo ), - &internalRepresentationCount, - reinterpret_cast( internalRepresentations.data() ) ) ); - } - } while ( result == Result::eIncomplete ); - detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutableInternalRepresentationsKHR" ); - VULKAN_HPP_ASSERT( internalRepresentationCount <= internalRepresentations.size() ); - if ( internalRepresentationCount < internalRepresentations.size() ) - { - internalRepresentations.resize( internalRepresentationCount ); - } - return detail::createResultValueType( result, std::move( internalRepresentations ) ); - } - - // wrapper function for command vkGetPipelineExecutableInternalRepresentationsKHR, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableInternalRepresentationsKHR.html - template ::value, - int>::type, - typename std::enable_if::type> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE - typename ResultValueType>::type - Device::getPipelineExecutableInternalRepresentationsKHR( - const PipelineExecutableInfoKHR & executableInfo, - PipelineExecutableInternalRepresentationKHRAllocator const & pipelineExecutableInternalRepresentationKHRAllocator, - Dispatch const & d ) const - { - VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); -# if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) - VULKAN_HPP_ASSERT( d.vkGetPipelineExecutableInternalRepresentationsKHR && - "Function requires " ); -# endif - - std::vector internalRepresentations( - pipelineExecutableInternalRepresentationKHRAllocator ); - uint32_t internalRepresentationCount; - Result result; - do - { - result = static_cast( d.vkGetPipelineExecutableInternalRepresentationsKHR( - m_device, reinterpret_cast( &executableInfo ), &internalRepresentationCount, nullptr ) ); - if ( ( result == Result::eSuccess ) && internalRepresentationCount ) - { - internalRepresentations.resize( internalRepresentationCount ); - result = static_cast( d.vkGetPipelineExecutableInternalRepresentationsKHR( - m_device, - reinterpret_cast( &executableInfo ), - &internalRepresentationCount, - reinterpret_cast( internalRepresentations.data() ) ) ); - } - } while ( result == Result::eIncomplete ); - detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutableInternalRepresentationsKHR" ); - VULKAN_HPP_ASSERT( internalRepresentationCount <= internalRepresentations.size() ); - if ( internalRepresentationCount < internalRepresentations.size() ) - { - internalRepresentations.resize( internalRepresentationCount ); - } - return detail::createResultValueType( result, std::move( internalRepresentations ) ); - } -#endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ - //=== VK_EXT_host_image_copy === // wrapper function for command vkCopyMemoryToImageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToImageEXT.html @@ -28773,7 +28545,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( shaders.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXT", { Result::eSuccess, Result::eIncompatibleShaderBinaryEXT } ); - return ResultValue>( result, std::move( shaders ) ); + return { result, shaders }; } // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html @@ -28800,7 +28572,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( shaders.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXT", { Result::eSuccess, Result::eIncompatibleShaderBinaryEXT } ); - return ResultValue>( result, std::move( shaders ) ); + return { result, shaders }; } // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html @@ -28821,7 +28593,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &shader ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShaderEXT", { Result::eSuccess, Result::eIncompatibleShaderBinaryEXT } ); - return ResultValue( result, std::move( shader ) ); + return { result, shader }; } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -29176,7 +28948,7 @@ namespace VULKAN_HPP_NAMESPACE detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineBinariesKHR", { Result::eSuccess, Result::eIncomplete, Result::ePipelineBinaryMissingKHR } ); - return ResultValue>( result, std::move( pipelineBinaries ) ); + return { result, pipelineBinaries }; } // wrapper function for command vkCreatePipelineBinariesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineBinariesKHR.html @@ -29230,7 +29002,7 @@ namespace VULKAN_HPP_NAMESPACE detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineBinariesKHR", { Result::eSuccess, Result::eIncomplete, Result::ePipelineBinaryMissingKHR } ); - return ResultValue>( result, std::move( pipelineBinaries ) ); + return { result, pipelineBinaries }; } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -29973,54 +29745,6 @@ namespace VULKAN_HPP_NAMESPACE static_cast( m_device ), static_cast( swapchain ), reinterpret_cast( pLatencyMarkerInfo ) ); } -#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE - // wrapper function for command vkGetLatencyTimingsNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsNV.html - template ::value, int>::type, - typename std::enable_if::type> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector - Device::getLatencyTimingsNV( SwapchainKHR swapchain, Dispatch const & d ) const - { - VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); -# if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) - VULKAN_HPP_ASSERT( d.vkGetLatencyTimingsNV && "Function requires " ); -# endif - - std::vector timings; - GetLatencyMarkerInfoNV latencyMarkerInfo; - d.vkGetLatencyTimingsNV( m_device, static_cast( swapchain ), reinterpret_cast( &latencyMarkerInfo ) ); - timings.resize( latencyMarkerInfo.timingCount ); - latencyMarkerInfo.pTimings = timings.data(); - d.vkGetLatencyTimingsNV( m_device, static_cast( swapchain ), reinterpret_cast( &latencyMarkerInfo ) ); - - return timings; - } - - // wrapper function for command vkGetLatencyTimingsNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsNV.html - template ::value, int>::type, - typename std::enable_if::type> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector Device::getLatencyTimingsNV( - SwapchainKHR swapchain, LatencyTimingsFrameReportNVAllocator const & latencyTimingsFrameReportNVAllocator, Dispatch const & d ) const - { - VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); -# if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) - VULKAN_HPP_ASSERT( d.vkGetLatencyTimingsNV && "Function requires " ); -# endif - - std::vector timings( latencyTimingsFrameReportNVAllocator ); - GetLatencyMarkerInfoNV latencyMarkerInfo; - d.vkGetLatencyTimingsNV( m_device, static_cast( swapchain ), reinterpret_cast( &latencyMarkerInfo ) ); - timings.resize( latencyMarkerInfo.timingCount ); - latencyMarkerInfo.pTimings = timings.data(); - d.vkGetLatencyTimingsNV( m_device, static_cast( swapchain ), reinterpret_cast( &latencyMarkerInfo ) ); - - return timings; - } -#endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ - // wrapper function for command vkQueueNotifyOutOfBandNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueNotifyOutOfBandNV.html template ::type> VULKAN_HPP_INLINE void Queue::notifyOutOfBandNV( const OutOfBandQueueTypeInfoNV * pQueueTypeInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT @@ -30194,7 +29918,7 @@ namespace VULKAN_HPP_NAMESPACE allocator.get(), d ); - return ResultValue>( result, std::move( pipelines ) ); + return { result, pipelines }; } // wrapper function for command vkCreateDataGraphPipelinesARM, see @@ -30232,7 +29956,7 @@ namespace VULKAN_HPP_NAMESPACE allocator.get(), d ); - return ResultValue>( result, std::move( pipelines ) ); + return { result, pipelines }; } // wrapper function for command vkCreateDataGraphPipelinesARM, see @@ -30260,7 +29984,7 @@ namespace VULKAN_HPP_NAMESPACE detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDataGraphPipelineARM", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } ); - return ResultValue( result, std::move( pipeline ) ); + return { result, pipeline }; } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -32757,5 +32481,100 @@ namespace VULKAN_HPP_NAMESPACE } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ +#if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + + // wrapper function for command vkCreateUbmSurfaceSEC, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateUbmSurfaceSEC.html + template ::type> + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createUbmSurfaceSEC( const UbmSurfaceCreateInfoSEC * pCreateInfo, + const AllocationCallbacks * pAllocator, + SurfaceKHR * pSurface, + Dispatch const & d ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); + return static_cast( d.vkCreateUbmSurfaceSEC( static_cast( m_instance ), + reinterpret_cast( pCreateInfo ), + reinterpret_cast( pAllocator ), + reinterpret_cast( pSurface ) ) ); + } + +# ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE + // wrapper function for command vkCreateUbmSurfaceSEC, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateUbmSurfaceSEC.html + template ::type> + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType::type + Instance::createUbmSurfaceSEC( const UbmSurfaceCreateInfoSEC & createInfo, Optional allocator, Dispatch const & d ) const + { + VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); +# if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) + VULKAN_HPP_ASSERT( d.vkCreateUbmSurfaceSEC && "Function requires " ); +# endif + + SurfaceKHR surface; + Result result = static_cast( d.vkCreateUbmSurfaceSEC( m_instance, + reinterpret_cast( &createInfo ), + reinterpret_cast( allocator.get() ), + reinterpret_cast( &surface ) ) ); + detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createUbmSurfaceSEC" ); + + return detail::createResultValueType( result, std::move( surface ) ); + } + +# ifndef VULKAN_HPP_NO_SMART_HANDLE + // wrapper function for command vkCreateUbmSurfaceSEC, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateUbmSurfaceSEC.html + template ::type> + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType>::type + Instance::createUbmSurfaceSECUnique( const UbmSurfaceCreateInfoSEC & createInfo, Optional allocator, Dispatch const & d ) const + { + VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); +# if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) + VULKAN_HPP_ASSERT( d.vkCreateUbmSurfaceSEC && "Function requires " ); +# endif + + SurfaceKHR surface; + Result result = static_cast( d.vkCreateUbmSurfaceSEC( m_instance, + reinterpret_cast( &createInfo ), + reinterpret_cast( allocator.get() ), + reinterpret_cast( &surface ) ) ); + detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createUbmSurfaceSECUnique" ); + + return detail::createResultValueType( result, + UniqueHandle( surface, detail::ObjectDestroy( *this, allocator, d ) ) ); + } +# endif /* VULKAN_HPP_NO_SMART_HANDLE */ +# endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ + + // wrapper function for command vkGetPhysicalDeviceUbmPresentationSupportSEC, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceUbmPresentationSupportSEC.html + template ::type> + VULKAN_HPP_INLINE Bool32 PhysicalDevice::getUbmPresentationSupportSEC( uint32_t queueFamilyIndex, + struct ubm_device * ubm_device, + Dispatch const & d ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); + return static_cast( + d.vkGetPhysicalDeviceUbmPresentationSupportSEC( static_cast( m_physicalDevice ), queueFamilyIndex, ubm_device ) ); + } + +# ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE + // wrapper function for command vkGetPhysicalDeviceUbmPresentationSupportSEC, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceUbmPresentationSupportSEC.html + template ::type> + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::pair + PhysicalDevice::getUbmPresentationSupportSEC( uint32_t queueFamilyIndex, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); +# if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) + VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceUbmPresentationSupportSEC && + "Function requires " ); +# endif + + struct ubm_device ubm_device; + VkBool32 result = d.vkGetPhysicalDeviceUbmPresentationSupportSEC( m_physicalDevice, queueFamilyIndex, &ubm_device ); + + return { result, ubm_device }; + } +# endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ +#endif /*VK_USE_PLATFORM_UBM_SEC*/ + } // namespace VULKAN_HPP_NAMESPACE #endif diff --git a/third_party/vulkan/vulkan_handles.hpp b/third_party/vulkan/vulkan_handles.hpp index 7d1e6bb..dcb41b6 100644 --- a/third_party/vulkan/vulkan_handles.hpp +++ b/third_party/vulkan/vulkan_handles.hpp @@ -2335,6 +2335,11 @@ namespace VULKAN_HPP_NAMESPACE //=== VK_EXT_shader_subgroup_partitioned === struct PhysicalDeviceShaderSubgroupPartitionedFeaturesEXT; +#if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + struct UbmSurfaceCreateInfoSEC; +#endif /*VK_USE_PLATFORM_UBM_SEC*/ + //=================================== //=== HANDLE forward declarations === //=================================== @@ -15052,32 +15057,6 @@ namespace VULKAN_HPP_NAMESPACE const Image * pImages, HostAddressRangeEXT * pDatas, Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; -#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE - // wrapper function for command vkGetImageOpaqueCaptureDataEXT, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDataEXT.html - template , - typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE, - typename std::enable_if::value, int>::type = 0, - typename std::enable_if::type = true> - VULKAN_HPP_NODISCARD typename ResultValueType>::type - getImageOpaqueCaptureDataEXT( ArrayProxy const & images, Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; - // wrapper function for command vkGetImageOpaqueCaptureDataEXT, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDataEXT.html - template , - typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE, - typename std::enable_if::value, int>::type = 0, - typename std::enable_if::type = true> - VULKAN_HPP_NODISCARD typename ResultValueType>::type - getImageOpaqueCaptureDataEXT( ArrayProxy const & images, - HostAddressRangeEXTAllocator const & hostAddressRangeEXTAllocator, - Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; - // wrapper function for command vkGetImageOpaqueCaptureDataEXT, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDataEXT.html - template ::type = true> - VULKAN_HPP_NODISCARD typename ResultValueType::type - getImageOpaqueCaptureDataEXT( const Image & image, Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; -#endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ // wrapper function for command vkRegisterCustomBorderColorEXT, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterCustomBorderColorEXT.html @@ -15110,32 +15089,6 @@ namespace VULKAN_HPP_NAMESPACE const TensorARM * pTensors, HostAddressRangeEXT * pDatas, Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; -#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE - // wrapper function for command vkGetTensorOpaqueCaptureDataARM, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDataARM.html - template , - typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE, - typename std::enable_if::value, int>::type = 0, - typename std::enable_if::type = true> - VULKAN_HPP_NODISCARD typename ResultValueType>::type - getTensorOpaqueCaptureDataARM( ArrayProxy const & tensors, Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; - // wrapper function for command vkGetTensorOpaqueCaptureDataARM, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDataARM.html - template , - typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE, - typename std::enable_if::value, int>::type = 0, - typename std::enable_if::type = true> - VULKAN_HPP_NODISCARD typename ResultValueType>::type - getTensorOpaqueCaptureDataARM( ArrayProxy const & tensors, - HostAddressRangeEXTAllocator const & hostAddressRangeEXTAllocator, - Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; - // wrapper function for command vkGetTensorOpaqueCaptureDataARM, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDataARM.html - template ::type = true> - VULKAN_HPP_NODISCARD typename ResultValueType::type - getTensorOpaqueCaptureDataARM( const TensorARM & tensor, Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; -#endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ //=== VK_KHR_get_memory_requirements2 === @@ -16622,34 +16575,6 @@ namespace VULKAN_HPP_NAMESPACE uint32_t * pInternalRepresentationCount, PipelineExecutableInternalRepresentationKHR * pInternalRepresentations, Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; -#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE - // wrapper function for command vkGetPipelineExecutableInternalRepresentationsKHR, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableInternalRepresentationsKHR.html - template , - typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE, - typename std::enable_if< - std::is_same::value, - int>::type = 0, - typename std::enable_if::type = true> - VULKAN_HPP_NODISCARD - typename ResultValueType>::type - getPipelineExecutableInternalRepresentationsKHR( const PipelineExecutableInfoKHR & executableInfo, - Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; - // wrapper function for command vkGetPipelineExecutableInternalRepresentationsKHR, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableInternalRepresentationsKHR.html - template , - typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE, - typename std::enable_if< - std::is_same::value, - int>::type = 0, - typename std::enable_if::type = true> - VULKAN_HPP_NODISCARD - typename ResultValueType>::type - getPipelineExecutableInternalRepresentationsKHR( - const PipelineExecutableInfoKHR & executableInfo, - PipelineExecutableInternalRepresentationKHRAllocator const & pipelineExecutableInternalRepresentationKHRAllocator, - Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; -#endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ //=== VK_EXT_host_image_copy === @@ -18682,26 +18607,6 @@ namespace VULKAN_HPP_NAMESPACE void getLatencyTimingsNV( SwapchainKHR swapchain, GetLatencyMarkerInfoNV * pLatencyMarkerInfo, Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; -#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE - // wrapper function for command vkGetLatencyTimingsNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsNV.html - template < - typename LatencyTimingsFrameReportNVAllocator = std::allocator, - typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE, - typename std::enable_if::value, int>::type = 0, - typename std::enable_if::type = true> - VULKAN_HPP_NODISCARD std::vector - getLatencyTimingsNV( SwapchainKHR swapchain, Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; - // wrapper function for command vkGetLatencyTimingsNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsNV.html - template < - typename LatencyTimingsFrameReportNVAllocator = std::allocator, - typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE, - typename std::enable_if::value, int>::type = 0, - typename std::enable_if::type = true> - VULKAN_HPP_NODISCARD std::vector - getLatencyTimingsNV( SwapchainKHR swapchain, - LatencyTimingsFrameReportNVAllocator const & latencyTimingsFrameReportNVAllocator, - Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; -#endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ //=== VK_ARM_data_graph === @@ -21711,6 +21616,26 @@ namespace VULKAN_HPP_NAMESPACE Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ +#if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + + // wrapper function for command vkGetPhysicalDeviceUbmPresentationSupportSEC, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceUbmPresentationSupportSEC.html + template ::type = true> + Bool32 getUbmPresentationSupportSEC( uint32_t queueFamilyIndex, + struct ubm_device * ubm_device, + Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; +# ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE + // wrapper function for command vkGetPhysicalDeviceUbmPresentationSupportSEC, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceUbmPresentationSupportSEC.html + template ::type = true> + VULKAN_HPP_NODISCARD std::pair + getUbmPresentationSupportSEC( uint32_t queueFamilyIndex, Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; +# endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ +#endif /*VK_USE_PLATFORM_UBM_SEC*/ + operator VkPhysicalDevice() const VULKAN_HPP_NOEXCEPT { return m_physicalDevice; @@ -22550,6 +22475,33 @@ namespace VULKAN_HPP_NAMESPACE # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ #endif /*VK_USE_PLATFORM_OHOS*/ +#if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + + // wrapper function for command vkCreateUbmSurfaceSEC, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateUbmSurfaceSEC.html + template ::type = true> + VULKAN_HPP_NODISCARD Result createUbmSurfaceSEC( const UbmSurfaceCreateInfoSEC * pCreateInfo, + const AllocationCallbacks * pAllocator, + SurfaceKHR * pSurface, + Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; +# ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE + // wrapper function for command vkCreateUbmSurfaceSEC, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateUbmSurfaceSEC.html + template ::type = true> + VULKAN_HPP_NODISCARD typename ResultValueType::type + createUbmSurfaceSEC( const UbmSurfaceCreateInfoSEC & createInfo, + Optional allocator VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ), + Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; +# ifndef VULKAN_HPP_NO_SMART_HANDLE + // wrapper function for command vkCreateUbmSurfaceSEC, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateUbmSurfaceSEC.html + template ::type = true> + VULKAN_HPP_NODISCARD typename ResultValueType>::type + createUbmSurfaceSECUnique( const UbmSurfaceCreateInfoSEC & createInfo, + Optional allocator VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ), + Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; +# endif /* VULKAN_HPP_NO_SMART_HANDLE */ +# endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ +#endif /*VK_USE_PLATFORM_UBM_SEC*/ + operator VkInstance() const VULKAN_HPP_NOEXCEPT { return m_instance; diff --git a/third_party/vulkan/vulkan_hash.hpp b/third_party/vulkan/vulkan_hash.hpp index ff7e778..df7e350 100644 --- a/third_party/vulkan/vulkan_hash.hpp +++ b/third_party/vulkan/vulkan_hash.hpp @@ -19401,6 +19401,23 @@ namespace std } }; +# if defined( VK_USE_PLATFORM_UBM_SEC ) + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::UbmSurfaceCreateInfoSEC const & ubmSurfaceCreateInfoSEC ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, ubmSurfaceCreateInfoSEC.sType ); + VULKAN_HPP_HASH_COMBINE( seed, ubmSurfaceCreateInfoSEC.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, ubmSurfaceCreateInfoSEC.flags ); + VULKAN_HPP_HASH_COMBINE( seed, ubmSurfaceCreateInfoSEC.ubm_device ); + VULKAN_HPP_HASH_COMBINE( seed, ubmSurfaceCreateInfoSEC.ubm_surface ); + return seed; + } + }; +# endif /*VK_USE_PLATFORM_UBM_SEC*/ + template <> struct hash { diff --git a/third_party/vulkan/vulkan_raii.hpp b/third_party/vulkan/vulkan_raii.hpp index 9f18b89..7450301 100644 --- a/third_party/vulkan/vulkan_raii.hpp +++ b/third_party/vulkan/vulkan_raii.hpp @@ -403,6 +403,13 @@ namespace VULKAN_HPP_NAMESPACE vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM = PFN_vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM( vkGetInstanceProcAddr( instance, "vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM" ) ); +# if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + vkCreateUbmSurfaceSEC = PFN_vkCreateUbmSurfaceSEC( vkGetInstanceProcAddr( instance, "vkCreateUbmSurfaceSEC" ) ); + vkGetPhysicalDeviceUbmPresentationSupportSEC = + PFN_vkGetPhysicalDeviceUbmPresentationSupportSEC( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceUbmPresentationSupportSEC" ) ); +# endif /*VK_USE_PLATFORM_UBM_SEC*/ + vkGetDeviceProcAddr = PFN_vkGetDeviceProcAddr( vkGetInstanceProcAddr( instance, "vkGetDeviceProcAddr" ) ); } @@ -706,6 +713,15 @@ namespace VULKAN_HPP_NAMESPACE //=== VK_ARM_performance_counters_by_region === PFN_vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM = 0; +# if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + PFN_vkCreateUbmSurfaceSEC vkCreateUbmSurfaceSEC = 0; + PFN_vkGetPhysicalDeviceUbmPresentationSupportSEC vkGetPhysicalDeviceUbmPresentationSupportSEC = 0; +# else + PFN_dummy vkCreateUbmSurfaceSEC_placeholder = 0; + PFN_dummy vkGetPhysicalDeviceUbmPresentationSupportSEC_placeholder = 0; +# endif /*VK_USE_PLATFORM_UBM_SEC*/ + PFN_vkGetDeviceProcAddr vkGetDeviceProcAddr = 0; }; @@ -3529,6 +3545,15 @@ namespace VULKAN_HPP_NAMESPACE Optional allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS; # endif /*VK_USE_PLATFORM_OHOS*/ +# if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + + // wrapper function for command vkCreateUbmSurfaceSEC, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateUbmSurfaceSEC.html + VULKAN_HPP_NODISCARD typename ResultValueType::type + createUbmSurfaceSEC( UbmSurfaceCreateInfoSEC const & createInfo, + Optional allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS; +# endif /*VK_USE_PLATFORM_UBM_SEC*/ + private: VULKAN_HPP_NAMESPACE::Instance m_instance = {}; const AllocationCallbacks * m_allocator = {}; @@ -3687,6 +3712,10 @@ namespace VULKAN_HPP_NAMESPACE template VULKAN_HPP_NODISCARD StructureChain getFeatures2() const VULKAN_HPP_NOEXCEPT; + // wrapper function for command vkGetPhysicalDeviceProperties2, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2.html + void getProperties2( PhysicalDeviceProperties2 * pProperties ) const VULKAN_HPP_NOEXCEPT; + // wrapper function for command vkGetPhysicalDeviceProperties2, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2.html VULKAN_HPP_NODISCARD PhysicalDeviceProperties2 getProperties2() const VULKAN_HPP_NOEXCEPT; @@ -3696,6 +3725,10 @@ namespace VULKAN_HPP_NAMESPACE template VULKAN_HPP_NODISCARD StructureChain getProperties2() const VULKAN_HPP_NOEXCEPT; + // wrapper function for command vkGetPhysicalDeviceFormatProperties2, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2.html + void getFormatProperties2( Format format, FormatProperties2 * pFormatProperties ) const VULKAN_HPP_NOEXCEPT; + // wrapper function for command vkGetPhysicalDeviceFormatProperties2, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2.html VULKAN_HPP_NODISCARD FormatProperties2 getFormatProperties2( Format format ) const VULKAN_HPP_NOEXCEPT; @@ -3705,11 +3738,6 @@ namespace VULKAN_HPP_NAMESPACE template VULKAN_HPP_NODISCARD StructureChain getFormatProperties2( Format format ) const VULKAN_HPP_NOEXCEPT; - // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2.html - VULKAN_HPP_NODISCARD Result getImageFormatProperties2( const PhysicalDeviceImageFormatInfo2 * pImageFormatInfo, - ImageFormatProperties2 * pImageFormatProperties ) const VULKAN_HPP_NOEXCEPT; - // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2.html VULKAN_HPP_NODISCARD typename ResultValueType::type @@ -3842,11 +3870,6 @@ namespace VULKAN_HPP_NAMESPACE //=== VK_KHR_video_queue === - // wrapper function for command vkGetPhysicalDeviceVideoCapabilitiesKHR, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoCapabilitiesKHR.html - VULKAN_HPP_NODISCARD Result getVideoCapabilitiesKHR( const VideoProfileInfoKHR * pVideoProfile, - VideoCapabilitiesKHR * pCapabilities ) const VULKAN_HPP_NOEXCEPT; - // wrapper function for command vkGetPhysicalDeviceVideoCapabilitiesKHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoCapabilitiesKHR.html VULKAN_HPP_NODISCARD typename ResultValueType::type getVideoCapabilitiesKHR( const VideoProfileInfoKHR & videoProfile ) const; @@ -3890,6 +3913,10 @@ namespace VULKAN_HPP_NAMESPACE template VULKAN_HPP_NODISCARD StructureChain getFeatures2KHR() const VULKAN_HPP_NOEXCEPT; + // wrapper function for command vkGetPhysicalDeviceProperties2KHR, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2KHR.html + void getProperties2KHR( PhysicalDeviceProperties2 * pProperties ) const VULKAN_HPP_NOEXCEPT; + // wrapper function for command vkGetPhysicalDeviceProperties2KHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2KHR.html VULKAN_HPP_NODISCARD PhysicalDeviceProperties2 getProperties2KHR() const VULKAN_HPP_NOEXCEPT; @@ -3899,6 +3926,10 @@ namespace VULKAN_HPP_NAMESPACE template VULKAN_HPP_NODISCARD StructureChain getProperties2KHR() const VULKAN_HPP_NOEXCEPT; + // wrapper function for command vkGetPhysicalDeviceFormatProperties2KHR, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html + void getFormatProperties2KHR( Format format, FormatProperties2 * pFormatProperties ) const VULKAN_HPP_NOEXCEPT; + // wrapper function for command vkGetPhysicalDeviceFormatProperties2KHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html VULKAN_HPP_NODISCARD FormatProperties2 getFormatProperties2KHR( Format format ) const VULKAN_HPP_NOEXCEPT; @@ -3908,11 +3939,6 @@ namespace VULKAN_HPP_NAMESPACE template VULKAN_HPP_NODISCARD StructureChain getFormatProperties2KHR( Format format ) const VULKAN_HPP_NOEXCEPT; - // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2KHR, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2KHR.html - VULKAN_HPP_NODISCARD Result getImageFormatProperties2KHR( const PhysicalDeviceImageFormatInfo2 * pImageFormatInfo, - ImageFormatProperties2 * pImageFormatProperties ) const VULKAN_HPP_NOEXCEPT; - // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2KHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2KHR.html VULKAN_HPP_NODISCARD typename ResultValueType::type @@ -4104,12 +4130,6 @@ namespace VULKAN_HPP_NAMESPACE //=== VK_KHR_video_encode_queue === - // wrapper function for command vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR.html - VULKAN_HPP_NODISCARD Result - getVideoEncodeQualityLevelPropertiesKHR( const PhysicalDeviceVideoEncodeQualityLevelInfoKHR * pQualityLevelInfo, - VideoEncodeQualityLevelPropertiesKHR * pQualityLevelProperties ) const VULKAN_HPP_NOEXCEPT; - // wrapper function for command vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR.html VULKAN_HPP_NODISCARD typename ResultValueType::type @@ -4203,6 +4223,14 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NODISCARD typename ResultValueType, std::vector>>::type enumerateQueueFamilyPerformanceCountersByRegionARM( uint32_t queueFamilyIndex ) const; +# if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + + // wrapper function for command vkGetPhysicalDeviceUbmPresentationSupportSEC, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceUbmPresentationSupportSEC.html + VULKAN_HPP_NODISCARD std::pair getUbmPresentationSupportSEC( uint32_t queueFamilyIndex ) const VULKAN_HPP_NOEXCEPT; +# endif /*VK_USE_PLATFORM_UBM_SEC*/ + private: VULKAN_HPP_NAMESPACE::PhysicalDevice m_physicalDevice = {}; detail::InstanceDispatcher const * m_dispatcher = nullptr; @@ -4866,11 +4894,6 @@ namespace VULKAN_HPP_NAMESPACE # if defined( VK_USE_PLATFORM_ANDROID_KHR ) //=== VK_ANDROID_external_memory_android_hardware_buffer === - // wrapper function for command vkGetAndroidHardwareBufferPropertiesANDROID, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAndroidHardwareBufferPropertiesANDROID.html - VULKAN_HPP_NODISCARD Result getAndroidHardwareBufferPropertiesANDROID( const struct AHardwareBuffer * buffer, - AndroidHardwareBufferPropertiesANDROID * pProperties ) const VULKAN_HPP_NOEXCEPT; - // wrapper function for command vkGetAndroidHardwareBufferPropertiesANDROID, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAndroidHardwareBufferPropertiesANDROID.html VULKAN_HPP_NODISCARD typename ResultValueType::type @@ -4920,12 +4943,9 @@ namespace VULKAN_HPP_NAMESPACE // wrapper function for command vkGetImageOpaqueCaptureDataEXT, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDataEXT.html - VULKAN_HPP_NODISCARD typename ResultValueType>::type - getImageOpaqueCaptureDataEXT( ArrayProxy const & images ) const; - - // wrapper function for command vkGetImageOpaqueCaptureDataEXT, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDataEXT.html - VULKAN_HPP_NODISCARD typename ResultValueType::type getImageOpaqueCaptureDataEXT( const VULKAN_HPP_NAMESPACE::Image & image ) const; + VULKAN_HPP_NODISCARD Result getImageOpaqueCaptureDataEXT( uint32_t imageCount, + const VULKAN_HPP_NAMESPACE::Image * pImages, + HostAddressRangeEXT * pDatas ) const VULKAN_HPP_NOEXCEPT; // wrapper function for command vkRegisterCustomBorderColorEXT, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterCustomBorderColorEXT.html @@ -4938,13 +4958,9 @@ namespace VULKAN_HPP_NAMESPACE // wrapper function for command vkGetTensorOpaqueCaptureDataARM, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDataARM.html - VULKAN_HPP_NODISCARD typename ResultValueType>::type - getTensorOpaqueCaptureDataARM( ArrayProxy const & tensors ) const; - - // wrapper function for command vkGetTensorOpaqueCaptureDataARM, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDataARM.html - VULKAN_HPP_NODISCARD typename ResultValueType::type - getTensorOpaqueCaptureDataARM( const VULKAN_HPP_NAMESPACE::TensorARM & tensor ) const; + VULKAN_HPP_NODISCARD Result getTensorOpaqueCaptureDataARM( uint32_t tensorCount, + const VULKAN_HPP_NAMESPACE::TensorARM * pTensors, + HostAddressRangeEXT * pDatas ) const VULKAN_HPP_NOEXCEPT; //=== VK_KHR_get_memory_requirements2 === @@ -5232,8 +5248,10 @@ namespace VULKAN_HPP_NAMESPACE // wrapper function for command vkGetPipelineExecutableInternalRepresentationsKHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableInternalRepresentationsKHR.html - VULKAN_HPP_NODISCARD typename ResultValueType>::type - getPipelineExecutableInternalRepresentationsKHR( const PipelineExecutableInfoKHR & executableInfo ) const; + VULKAN_HPP_NODISCARD Result + getPipelineExecutableInternalRepresentationsKHR( const PipelineExecutableInfoKHR * pExecutableInfo, + uint32_t * pInternalRepresentationCount, + PipelineExecutableInternalRepresentationKHR * pInternalRepresentations ) const VULKAN_HPP_NOEXCEPT; //=== VK_EXT_host_image_copy === @@ -5524,11 +5542,6 @@ namespace VULKAN_HPP_NAMESPACE # if defined( VK_USE_PLATFORM_OHOS ) //=== VK_OHOS_external_memory === - // wrapper function for command vkGetNativeBufferPropertiesOHOS, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetNativeBufferPropertiesOHOS.html - VULKAN_HPP_NODISCARD Result getNativeBufferPropertiesOHOS( const struct OH_NativeBuffer * buffer, - NativeBufferPropertiesOHOS * pProperties ) const VULKAN_HPP_NOEXCEPT; - // wrapper function for command vkGetNativeBufferPropertiesOHOS, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetNativeBufferPropertiesOHOS.html VULKAN_HPP_NODISCARD typename ResultValueType::type @@ -5737,11 +5750,6 @@ namespace VULKAN_HPP_NAMESPACE # if defined( VK_USE_PLATFORM_SCREEN_QNX ) //=== VK_QNX_external_memory_screen_buffer === - // wrapper function for command vkGetScreenBufferPropertiesQNX, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetScreenBufferPropertiesQNX.html - VULKAN_HPP_NODISCARD Result getScreenBufferPropertiesQNX( const struct _screen_buffer * buffer, - ScreenBufferPropertiesQNX * pProperties ) const VULKAN_HPP_NOEXCEPT; - // wrapper function for command vkGetScreenBufferPropertiesQNX, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetScreenBufferPropertiesQNX.html VULKAN_HPP_NODISCARD typename ResultValueType::type getScreenBufferPropertiesQNX( const struct _screen_buffer & buffer ) const; @@ -14027,6 +14035,15 @@ namespace VULKAN_HPP_NAMESPACE # endif /*VK_USE_PLATFORM_OHOS*/ # endif +# if !defined( VULKAN_HPP_NO_EXCEPTIONS ) +# if defined( VK_USE_PLATFORM_UBM_SEC ) + SurfaceKHR( Instance const & instance, UbmSurfaceCreateInfoSEC const & createInfo, Optional allocator = nullptr ) + { + *this = instance.createUbmSurfaceSEC( createInfo, allocator ); + } +# endif /*VK_USE_PLATFORM_UBM_SEC*/ +# endif + # if !defined( VULKAN_HPP_NO_EXCEPTIONS ) # if defined( VK_USE_PLATFORM_VI_NN ) SurfaceKHR( Instance const & instance, ViSurfaceCreateInfoNN const & createInfo, Optional allocator = nullptr ) @@ -14389,7 +14406,7 @@ namespace VULKAN_HPP_NAMESPACE void setLatencyMarkerNV( const SetLatencyMarkerInfoNV & latencyMarkerInfo ) const VULKAN_HPP_NOEXCEPT; // wrapper function for command vkGetLatencyTimingsNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsNV.html - VULKAN_HPP_NODISCARD std::vector getLatencyTimingsNV() const; + void getLatencyTimingsNV( GetLatencyMarkerInfoNV * pLatencyMarkerInfo ) const VULKAN_HPP_NOEXCEPT; private: VULKAN_HPP_NAMESPACE::Device m_device = {}; @@ -15803,7 +15820,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast( flags ) ) ); VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::QueryPool::getResults", { Result::eSuccess, Result::eNotReady } ); - return ResultValue>( result, std::move( data ) ); + return { result, data }; } // wrapper function for command vkGetQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueryPoolResults.html @@ -15824,7 +15841,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast( flags ) ) ); VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::QueryPool::getResult", { Result::eSuccess, Result::eNotReady } ); - return ResultValue( result, std::move( data ) ); + return { result, data }; } // wrapper function for command vkCreateBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBuffer.html @@ -17139,6 +17156,16 @@ namespace VULKAN_HPP_NAMESPACE return structureChain; } + // wrapper function for command vkGetPhysicalDeviceProperties2, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2.html + VULKAN_HPP_INLINE void PhysicalDevice::getProperties2( PhysicalDeviceProperties2 * pProperties ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceProperties2 && + "Function requires or " ); + getDispatcher()->vkGetPhysicalDeviceProperties2( static_cast( m_physicalDevice ), + reinterpret_cast( pProperties ) ); + } + // wrapper function for command vkGetPhysicalDeviceProperties2, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2.html VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceProperties2 PhysicalDevice::getProperties2() const VULKAN_HPP_NOEXCEPT @@ -17169,6 +17196,16 @@ namespace VULKAN_HPP_NAMESPACE return structureChain; } + // wrapper function for command vkGetPhysicalDeviceFormatProperties2, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2.html + VULKAN_HPP_INLINE void PhysicalDevice::getFormatProperties2( Format format, FormatProperties2 * pFormatProperties ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceFormatProperties2 && + "Function requires or " ); + getDispatcher()->vkGetPhysicalDeviceFormatProperties2( + static_cast( m_physicalDevice ), static_cast( format ), reinterpret_cast( pFormatProperties ) ); + } + // wrapper function for command vkGetPhysicalDeviceFormatProperties2, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2.html VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE FormatProperties2 PhysicalDevice::getFormatProperties2( Format format ) const VULKAN_HPP_NOEXCEPT @@ -17199,19 +17236,6 @@ namespace VULKAN_HPP_NAMESPACE return structureChain; } - // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2.html - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getImageFormatProperties2( - const PhysicalDeviceImageFormatInfo2 * pImageFormatInfo, ImageFormatProperties2 * pImageFormatProperties ) const VULKAN_HPP_NOEXCEPT - { - VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceImageFormatProperties2 && - "Function requires or " ); - return static_cast( - getDispatcher()->vkGetPhysicalDeviceImageFormatProperties2( static_cast( m_physicalDevice ), - reinterpret_cast( pImageFormatInfo ), - reinterpret_cast( pImageFormatProperties ) ) ); - } - // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2.html VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType::type @@ -18655,7 +18679,7 @@ namespace VULKAN_HPP_NAMESPACE { Result::eSuccess, Result::eTimeout, Result::eNotReady, Result::eSuboptimalKHR } ); # endif - return ResultValue( result, std::move( imageIndex ) ); + return { result, imageIndex }; } // wrapper function for command vkQueuePresentKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueuePresentKHR.html @@ -18760,7 +18784,7 @@ namespace VULKAN_HPP_NAMESPACE { Result::eSuccess, Result::eTimeout, Result::eNotReady, Result::eSuboptimalKHR } ); # endif - return ResultValue( result, std::move( imageIndex ) ); + return { result, imageIndex }; } //=== VK_KHR_display === @@ -19243,17 +19267,6 @@ namespace VULKAN_HPP_NAMESPACE } //=== VK_KHR_video_queue === - // wrapper function for command vkGetPhysicalDeviceVideoCapabilitiesKHR, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoCapabilitiesKHR.html - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getVideoCapabilitiesKHR( const VideoProfileInfoKHR * pVideoProfile, - VideoCapabilitiesKHR * pCapabilities ) const VULKAN_HPP_NOEXCEPT - { - VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceVideoCapabilitiesKHR && - "Function requires " ); - return static_cast( getDispatcher()->vkGetPhysicalDeviceVideoCapabilitiesKHR( static_cast( m_physicalDevice ), - reinterpret_cast( pVideoProfile ), - reinterpret_cast( pCapabilities ) ) ); - } // wrapper function for command vkGetPhysicalDeviceVideoCapabilitiesKHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoCapabilitiesKHR.html @@ -19936,6 +19949,16 @@ namespace VULKAN_HPP_NAMESPACE return structureChain; } + // wrapper function for command vkGetPhysicalDeviceProperties2KHR, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2KHR.html + VULKAN_HPP_INLINE void PhysicalDevice::getProperties2KHR( PhysicalDeviceProperties2 * pProperties ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceProperties2KHR && + "Function requires or " ); + getDispatcher()->vkGetPhysicalDeviceProperties2KHR( static_cast( m_physicalDevice ), + reinterpret_cast( pProperties ) ); + } + // wrapper function for command vkGetPhysicalDeviceProperties2KHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2KHR.html VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceProperties2 PhysicalDevice::getProperties2KHR() const VULKAN_HPP_NOEXCEPT @@ -19966,6 +19989,16 @@ namespace VULKAN_HPP_NAMESPACE return structureChain; } + // wrapper function for command vkGetPhysicalDeviceFormatProperties2KHR, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html + VULKAN_HPP_INLINE void PhysicalDevice::getFormatProperties2KHR( Format format, FormatProperties2 * pFormatProperties ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceFormatProperties2KHR && + "Function requires or " ); + getDispatcher()->vkGetPhysicalDeviceFormatProperties2KHR( + static_cast( m_physicalDevice ), static_cast( format ), reinterpret_cast( pFormatProperties ) ); + } + // wrapper function for command vkGetPhysicalDeviceFormatProperties2KHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE FormatProperties2 PhysicalDevice::getFormatProperties2KHR( Format format ) const VULKAN_HPP_NOEXCEPT @@ -19996,19 +20029,6 @@ namespace VULKAN_HPP_NAMESPACE return structureChain; } - // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2KHR, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2KHR.html - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getImageFormatProperties2KHR( - const PhysicalDeviceImageFormatInfo2 * pImageFormatInfo, ImageFormatProperties2 * pImageFormatProperties ) const VULKAN_HPP_NOEXCEPT - { - VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceImageFormatProperties2KHR && - "Function requires or " ); - return static_cast( - getDispatcher()->vkGetPhysicalDeviceImageFormatProperties2KHR( static_cast( m_physicalDevice ), - reinterpret_cast( pImageFormatInfo ), - reinterpret_cast( pImageFormatProperties ) ) ); - } - // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2KHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2KHR.html VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType::type @@ -21532,16 +21552,6 @@ namespace VULKAN_HPP_NAMESPACE # if defined( VK_USE_PLATFORM_ANDROID_KHR ) //=== VK_ANDROID_external_memory_android_hardware_buffer === - // wrapper function for command vkGetAndroidHardwareBufferPropertiesANDROID, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAndroidHardwareBufferPropertiesANDROID.html - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getAndroidHardwareBufferPropertiesANDROID( - const struct AHardwareBuffer * buffer, AndroidHardwareBufferPropertiesANDROID * pProperties ) const VULKAN_HPP_NOEXCEPT - { - VULKAN_HPP_ASSERT( getDispatcher()->vkGetAndroidHardwareBufferPropertiesANDROID && - "Function requires " ); - return static_cast( getDispatcher()->vkGetAndroidHardwareBufferPropertiesANDROID( - static_cast( m_device ), buffer, reinterpret_cast( pProperties ) ) ); - } // wrapper function for command vkGetAndroidHardwareBufferPropertiesANDROID, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAndroidHardwareBufferPropertiesANDROID.html @@ -21822,34 +21832,13 @@ namespace VULKAN_HPP_NAMESPACE // wrapper function for command vkGetImageOpaqueCaptureDataEXT, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDataEXT.html - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType>::type - Device::getImageOpaqueCaptureDataEXT( ArrayProxy const & images ) const + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getImageOpaqueCaptureDataEXT( uint32_t imageCount, + const VULKAN_HPP_NAMESPACE::Image * pImages, + HostAddressRangeEXT * pDatas ) const VULKAN_HPP_NOEXCEPT { VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageOpaqueCaptureDataEXT && "Function requires " ); - - std::vector datas( images.size() ); - Result result = static_cast( getDispatcher()->vkGetImageOpaqueCaptureDataEXT( static_cast( m_device ), - images.size(), - reinterpret_cast( images.data() ), - reinterpret_cast( datas.data() ) ) ); - VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getImageOpaqueCaptureDataEXT" ); - - return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( datas ) ); - } - - // wrapper function for command vkGetImageOpaqueCaptureDataEXT, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDataEXT.html - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType::type - Device::getImageOpaqueCaptureDataEXT( const VULKAN_HPP_NAMESPACE::Image & image ) const - { - VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageOpaqueCaptureDataEXT && "Function requires " ); - - HostAddressRangeEXT data; - Result result = static_cast( getDispatcher()->vkGetImageOpaqueCaptureDataEXT( - static_cast( m_device ), 1, reinterpret_cast( &image ), reinterpret_cast( &data ) ) ); - VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getImageOpaqueCaptureDataEXT" ); - - return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) ); + return static_cast( getDispatcher()->vkGetImageOpaqueCaptureDataEXT( + static_cast( m_device ), imageCount, reinterpret_cast( pImages ), reinterpret_cast( pDatas ) ) ); } // wrapper function for command vkGetPhysicalDeviceDescriptorSizeEXT, see @@ -21894,34 +21883,15 @@ namespace VULKAN_HPP_NAMESPACE // wrapper function for command vkGetTensorOpaqueCaptureDataARM, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDataARM.html - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType>::type - Device::getTensorOpaqueCaptureDataARM( ArrayProxy const & tensors ) const + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getTensorOpaqueCaptureDataARM( uint32_t tensorCount, + const VULKAN_HPP_NAMESPACE::TensorARM * pTensors, + HostAddressRangeEXT * pDatas ) const VULKAN_HPP_NOEXCEPT { VULKAN_HPP_ASSERT( getDispatcher()->vkGetTensorOpaqueCaptureDataARM && "Function requires " ); - - std::vector datas( tensors.size() ); - Result result = static_cast( getDispatcher()->vkGetTensorOpaqueCaptureDataARM( static_cast( m_device ), - tensors.size(), - reinterpret_cast( tensors.data() ), - reinterpret_cast( datas.data() ) ) ); - VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getTensorOpaqueCaptureDataARM" ); - - return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( datas ) ); - } - - // wrapper function for command vkGetTensorOpaqueCaptureDataARM, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDataARM.html - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType::type - Device::getTensorOpaqueCaptureDataARM( const VULKAN_HPP_NAMESPACE::TensorARM & tensor ) const - { - VULKAN_HPP_ASSERT( getDispatcher()->vkGetTensorOpaqueCaptureDataARM && "Function requires " ); - - HostAddressRangeEXT data; - Result result = static_cast( getDispatcher()->vkGetTensorOpaqueCaptureDataARM( - static_cast( m_device ), 1, reinterpret_cast( &tensor ), reinterpret_cast( &data ) ) ); - VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getTensorOpaqueCaptureDataARM" ); - - return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) ); + return static_cast( getDispatcher()->vkGetTensorOpaqueCaptureDataARM( static_cast( m_device ), + tensorCount, + reinterpret_cast( pTensors ), + reinterpret_cast( pDatas ) ) ); } //=== VK_EXT_sample_locations === @@ -23488,7 +23458,7 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::getTimingPropertiesEXT", { Result::eSuccess, Result::eNotReady } ); - return ResultValue>( result, std::move( data_ ) ); + return { result, data_ }; } // wrapper function for command vkGetSwapchainTimeDomainPropertiesEXT, see @@ -24350,39 +24320,18 @@ namespace VULKAN_HPP_NAMESPACE // wrapper function for command vkGetPipelineExecutableInternalRepresentationsKHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableInternalRepresentationsKHR.html - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType>::type - Device::getPipelineExecutableInternalRepresentationsKHR( const PipelineExecutableInfoKHR & executableInfo ) const + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPipelineExecutableInternalRepresentationsKHR( + const PipelineExecutableInfoKHR * pExecutableInfo, + uint32_t * pInternalRepresentationCount, + PipelineExecutableInternalRepresentationKHR * pInternalRepresentations ) const VULKAN_HPP_NOEXCEPT { VULKAN_HPP_ASSERT( getDispatcher()->vkGetPipelineExecutableInternalRepresentationsKHR && "Function requires " ); - - std::vector internalRepresentations; - uint32_t internalRepresentationCount; - Result result; - do - { - result = static_cast( - getDispatcher()->vkGetPipelineExecutableInternalRepresentationsKHR( static_cast( m_device ), - reinterpret_cast( &executableInfo ), - &internalRepresentationCount, - nullptr ) ); - if ( ( result == Result::eSuccess ) && internalRepresentationCount ) - { - internalRepresentations.resize( internalRepresentationCount ); - result = static_cast( getDispatcher()->vkGetPipelineExecutableInternalRepresentationsKHR( - static_cast( m_device ), - reinterpret_cast( &executableInfo ), - &internalRepresentationCount, - reinterpret_cast( internalRepresentations.data() ) ) ); - } - } while ( result == Result::eIncomplete ); - VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getPipelineExecutableInternalRepresentationsKHR" ); - VULKAN_HPP_ASSERT( internalRepresentationCount <= internalRepresentations.size() ); - if ( internalRepresentationCount < internalRepresentations.size() ) - { - internalRepresentations.resize( internalRepresentationCount ); - } - return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( internalRepresentations ) ); + return static_cast( getDispatcher()->vkGetPipelineExecutableInternalRepresentationsKHR( + static_cast( m_device ), + reinterpret_cast( pExecutableInfo ), + pInternalRepresentationCount, + reinterpret_cast( pInternalRepresentations ) ) ); } //=== VK_EXT_host_image_copy === @@ -24708,19 +24657,6 @@ namespace VULKAN_HPP_NAMESPACE } //=== VK_KHR_video_encode_queue === - // wrapper function for command vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR.html - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result - PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR( const PhysicalDeviceVideoEncodeQualityLevelInfoKHR * pQualityLevelInfo, - VideoEncodeQualityLevelPropertiesKHR * pQualityLevelProperties ) const VULKAN_HPP_NOEXCEPT - { - VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR && - "Function requires " ); - return static_cast( getDispatcher()->vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR( - static_cast( m_physicalDevice ), - reinterpret_cast( pQualityLevelInfo ), - reinterpret_cast( pQualityLevelProperties ) ) ); - } // wrapper function for command vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR.html @@ -26287,15 +26223,6 @@ namespace VULKAN_HPP_NAMESPACE # if defined( VK_USE_PLATFORM_OHOS ) //=== VK_OHOS_external_memory === - // wrapper function for command vkGetNativeBufferPropertiesOHOS, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetNativeBufferPropertiesOHOS.html - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getNativeBufferPropertiesOHOS( const struct OH_NativeBuffer * buffer, - NativeBufferPropertiesOHOS * pProperties ) const VULKAN_HPP_NOEXCEPT - { - VULKAN_HPP_ASSERT( getDispatcher()->vkGetNativeBufferPropertiesOHOS && "Function requires " ); - return static_cast( getDispatcher()->vkGetNativeBufferPropertiesOHOS( - static_cast( m_device ), buffer, reinterpret_cast( pProperties ) ) ); - } // wrapper function for command vkGetNativeBufferPropertiesOHOS, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetNativeBufferPropertiesOHOS.html @@ -27504,20 +27431,11 @@ namespace VULKAN_HPP_NAMESPACE } // wrapper function for command vkGetLatencyTimingsNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsNV.html - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector SwapchainKHR::getLatencyTimingsNV() const + VULKAN_HPP_INLINE void SwapchainKHR::getLatencyTimingsNV( GetLatencyMarkerInfoNV * pLatencyMarkerInfo ) const VULKAN_HPP_NOEXCEPT { VULKAN_HPP_ASSERT( getDispatcher()->vkGetLatencyTimingsNV && "Function requires " ); - - std::vector timings; - GetLatencyMarkerInfoNV latencyMarkerInfo; getDispatcher()->vkGetLatencyTimingsNV( - static_cast( m_device ), static_cast( m_swapchainKHR ), reinterpret_cast( &latencyMarkerInfo ) ); - timings.resize( latencyMarkerInfo.timingCount ); - latencyMarkerInfo.pTimings = timings.data(); - getDispatcher()->vkGetLatencyTimingsNV( - static_cast( m_device ), static_cast( m_swapchainKHR ), reinterpret_cast( &latencyMarkerInfo ) ); - - return timings; + static_cast( m_device ), static_cast( m_swapchainKHR ), reinterpret_cast( pLatencyMarkerInfo ) ); } // wrapper function for command vkQueueNotifyOutOfBandNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueNotifyOutOfBandNV.html @@ -27856,16 +27774,6 @@ namespace VULKAN_HPP_NAMESPACE # if defined( VK_USE_PLATFORM_SCREEN_QNX ) //=== VK_QNX_external_memory_screen_buffer === - // wrapper function for command vkGetScreenBufferPropertiesQNX, see - // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetScreenBufferPropertiesQNX.html - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getScreenBufferPropertiesQNX( const struct _screen_buffer * buffer, - ScreenBufferPropertiesQNX * pProperties ) const VULKAN_HPP_NOEXCEPT - { - VULKAN_HPP_ASSERT( getDispatcher()->vkGetScreenBufferPropertiesQNX && - "Function requires " ); - return static_cast( getDispatcher()->vkGetScreenBufferPropertiesQNX( - static_cast( m_device ), buffer, reinterpret_cast( pProperties ) ) ); - } // wrapper function for command vkGetScreenBufferPropertiesQNX, see // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetScreenBufferPropertiesQNX.html @@ -28533,6 +28441,41 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( ¶meters ) ); } +# if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + + // wrapper function for command vkCreateUbmSurfaceSEC, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateUbmSurfaceSEC.html + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType::type + Instance::createUbmSurfaceSEC( UbmSurfaceCreateInfoSEC const & createInfo, + Optional allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS + { + VULKAN_HPP_ASSERT( getDispatcher()->vkCreateUbmSurfaceSEC && "Function requires " ); + + VULKAN_HPP_NAMESPACE::SurfaceKHR surface; + Result result = static_cast( getDispatcher()->vkCreateUbmSurfaceSEC( static_cast( m_instance ), + reinterpret_cast( &createInfo ), + reinterpret_cast( allocator.get() ), + reinterpret_cast( &surface ) ) ); + VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createUbmSurfaceSEC" ); + return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast( &surface ), allocator ) ); + } + + // wrapper function for command vkGetPhysicalDeviceUbmPresentationSupportSEC, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceUbmPresentationSupportSEC.html + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::pair + PhysicalDevice::getUbmPresentationSupportSEC( uint32_t queueFamilyIndex ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceUbmPresentationSupportSEC && + "Function requires " ); + + struct ubm_device ubm_device; + VkBool32 result = + getDispatcher()->vkGetPhysicalDeviceUbmPresentationSupportSEC( static_cast( m_physicalDevice ), queueFamilyIndex, &ubm_device ); + + return { result, ubm_device }; + } +# endif /*VK_USE_PLATFORM_UBM_SEC*/ + //==================== //=== RAII Helpers === //==================== diff --git a/third_party/vulkan/vulkan_static_assertions.hpp b/third_party/vulkan/vulkan_static_assertions.hpp index 87e02f8..c841e88 100644 --- a/third_party/vulkan/vulkan_static_assertions.hpp +++ b/third_party/vulkan/vulkan_static_assertions.hpp @@ -9868,4 +9868,14 @@ VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, "PhysicalDeviceShaderSubgroupPartitionedFeaturesEXT is not nothrow_move_constructible!" ); +#if defined( VK_USE_PLATFORM_UBM_SEC ) +//=== VK_SEC_ubm_surface === + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::UbmSurfaceCreateInfoSEC ) == sizeof( VkUbmSurfaceCreateInfoSEC ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "UbmSurfaceCreateInfoSEC is not nothrow_move_constructible!" ); +#endif /*VK_USE_PLATFORM_UBM_SEC*/ + #endif diff --git a/third_party/vulkan/vulkan_structs.hpp b/third_party/vulkan/vulkan_structs.hpp index 1c9cc27..c37a88e 100644 --- a/third_party/vulkan/vulkan_structs.hpp +++ b/third_party/vulkan/vulkan_structs.hpp @@ -186352,6 +186352,163 @@ namespace VULKAN_HPP_NAMESPACE }; #endif +#if defined( VK_USE_PLATFORM_UBM_SEC ) + // wrapper struct for struct VkUbmSurfaceCreateInfoSEC, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkUbmSurfaceCreateInfoSEC.html + struct UbmSurfaceCreateInfoSEC + { + using NativeType = VkUbmSurfaceCreateInfoSEC; + + static const bool allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::eUbmSurfaceCreateInfoSEC; + +# if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR UbmSurfaceCreateInfoSEC( UbmSurfaceCreateFlagsSEC flags_ = {}, + struct ubm_device * ubm_device_ = {}, + struct ubm_surface * ubm_surface_ = {}, + const void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , flags{ flags_ } + , ubm_device{ ubm_device_ } + , ubm_surface{ ubm_surface_ } + { + } + + VULKAN_HPP_CONSTEXPR UbmSurfaceCreateInfoSEC( UbmSurfaceCreateInfoSEC const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + UbmSurfaceCreateInfoSEC( VkUbmSurfaceCreateInfoSEC const & rhs ) VULKAN_HPP_NOEXCEPT + : UbmSurfaceCreateInfoSEC( *reinterpret_cast( &rhs ) ) + { + } + + UbmSurfaceCreateInfoSEC & operator=( UbmSurfaceCreateInfoSEC const & rhs ) VULKAN_HPP_NOEXCEPT = default; +# endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + UbmSurfaceCreateInfoSEC & operator=( VkUbmSurfaceCreateInfoSEC const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + +# if !defined( VULKAN_HPP_NO_SETTERS ) && !defined( VULKAN_HPP_NO_STRUCT_SETTERS ) + VULKAN_HPP_CONSTEXPR_14 UbmSurfaceCreateInfoSEC & setPNext( const void * pNext_ ) & VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 UbmSurfaceCreateInfoSEC && setPNext( const void * pNext_ ) && VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 UbmSurfaceCreateInfoSEC & setFlags( UbmSurfaceCreateFlagsSEC flags_ ) & VULKAN_HPP_NOEXCEPT + { + flags = flags_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 UbmSurfaceCreateInfoSEC && setFlags( UbmSurfaceCreateFlagsSEC flags_ ) && VULKAN_HPP_NOEXCEPT + { + flags = flags_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 UbmSurfaceCreateInfoSEC & setUbm_device( struct ubm_device * ubm_device_ ) & VULKAN_HPP_NOEXCEPT + { + ubm_device = ubm_device_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 UbmSurfaceCreateInfoSEC && setUbm_device( struct ubm_device * ubm_device_ ) && VULKAN_HPP_NOEXCEPT + { + ubm_device = ubm_device_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 UbmSurfaceCreateInfoSEC & setUbm_surface( struct ubm_surface * ubm_surface_ ) & VULKAN_HPP_NOEXCEPT + { + ubm_surface = ubm_surface_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 UbmSurfaceCreateInfoSEC && setUbm_surface( struct ubm_surface * ubm_surface_ ) && VULKAN_HPP_NOEXCEPT + { + ubm_surface = ubm_surface_; + return std::move( *this ); + } +# endif /*VULKAN_HPP_NO_SETTERS*/ + + operator VkUbmSurfaceCreateInfoSEC const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkUbmSurfaceCreateInfoSEC &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkUbmSurfaceCreateInfoSEC const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkUbmSurfaceCreateInfoSEC *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +# if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple + reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, flags, ubm_device, ubm_surface ); + } +# endif + +# if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( UbmSurfaceCreateInfoSEC const & ) const = default; +# else + bool operator==( UbmSurfaceCreateInfoSEC const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( flags == rhs.flags ) && ( ubm_device == rhs.ubm_device ) && + ( ubm_surface == rhs.ubm_surface ); +# endif + } + + bool operator!=( UbmSurfaceCreateInfoSEC const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +# endif + + public: + StructureType sType = StructureType::eUbmSurfaceCreateInfoSEC; + const void * pNext = {}; + UbmSurfaceCreateFlagsSEC flags = {}; + struct ubm_device * ubm_device = {}; + struct ubm_surface * ubm_surface = {}; + }; + +# if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = UbmSurfaceCreateInfoSEC; + }; +# endif + + template <> + struct CppType + { + using Type = UbmSurfaceCreateInfoSEC; + }; +#endif /*VK_USE_PLATFORM_UBM_SEC*/ + // wrapper struct for struct VkValidationCacheCreateInfoEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkValidationCacheCreateInfoEXT.html struct ValidationCacheCreateInfoEXT { diff --git a/third_party/vulkan/vulkan_to_string.hpp b/third_party/vulkan/vulkan_to_string.hpp index 8a73dad..e7a6b5d 100644 --- a/third_party/vulkan/vulkan_to_string.hpp +++ b/third_party/vulkan/vulkan_to_string.hpp @@ -4392,6 +4392,15 @@ namespace VULKAN_HPP_NAMESPACE return result; } +#if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + + VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_20 std::string to_string( UbmSurfaceCreateFlagsSEC ) + { + return "{}"; + } +#endif /*VK_USE_PLATFORM_UBM_SEC*/ + //======================= //=== ENUMs to_string === //======================= @@ -5703,7 +5712,10 @@ namespace VULKAN_HPP_NAMESPACE case StructureType::eComputeOccupancyPriorityParametersNV : return "ComputeOccupancyPriorityParametersNV"; case StructureType::ePhysicalDeviceComputeOccupancyPriorityFeaturesNV : return "PhysicalDeviceComputeOccupancyPriorityFeaturesNV"; case StructureType::ePhysicalDeviceShaderSubgroupPartitionedFeaturesEXT : return "PhysicalDeviceShaderSubgroupPartitionedFeaturesEXT"; - default : return "invalid ( " + toHexString( static_cast( value ) ) + " )"; +#if defined( VK_USE_PLATFORM_UBM_SEC ) + case StructureType::eUbmSurfaceCreateInfoSEC: return "UbmSurfaceCreateInfoSEC"; +#endif /*VK_USE_PLATFORM_UBM_SEC*/ + default: return "invalid ( " + toHexString( static_cast( value ) ) + " )"; } } @@ -6077,6 +6089,9 @@ namespace VULKAN_HPP_NAMESPACE case Format::eAstc6x6x6SrgbBlockEXT : return "Astc6x6x6SrgbBlockEXT"; case Format::eAstc6x6x6SfloatBlockEXT : return "Astc6x6x6SfloatBlockEXT"; case Format::eR8BoolARM : return "R8BoolARM"; + case Format::eR16SfloatFpencodingBfloat16ARM : return "R16SfloatFpencodingBfloat16ARM"; + case Format::eR8SfloatFpencodingFloat8E4M3ARM : return "R8SfloatFpencodingFloat8E4M3ARM"; + case Format::eR8SfloatFpencodingFloat8E5M2ARM : return "R8SfloatFpencodingFloat8E5M2ARM"; case Format::eR16G16Sfixed5NV : return "R16G16Sfixed5NV"; case Format::eR10X6UintPack16ARM : return "R10X6UintPack16ARM"; case Format::eR10X6G10X6Uint2Pack16ARM : return "R10X6G10X6Uint2Pack16ARM"; @@ -11081,6 +11096,15 @@ namespace VULKAN_HPP_NAMESPACE } } +#if defined( VK_USE_PLATFORM_UBM_SEC ) + //=== VK_SEC_ubm_surface === + + VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_20 std::string to_string( UbmSurfaceCreateFlagBitsSEC ) + { + return "(void)"; + } +#endif /*VK_USE_PLATFORM_UBM_SEC*/ + } // namespace VULKAN_HPP_NAMESPACE #if defined( __clang__ ) || defined( __GNUC__ )