Update for Vulkan-Docs 1.2.199
This commit is contained in:
parent
8c1c27d5a9
commit
83e1a9ed8c
12 changed files with 6609 additions and 3574 deletions
|
|
@ -119,7 +119,7 @@ extern "C" __declspec( dllimport ) FARPROC __stdcall GetProcAddress( HINSTANCE h
|
||||||
# include <span>
|
# include <span>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static_assert( VK_HEADER_VERSION == 198, "Wrong VK_HEADER_VERSION!" );
|
static_assert( VK_HEADER_VERSION == 199, "Wrong VK_HEADER_VERSION!" );
|
||||||
|
|
||||||
// 32-bit vulkan is not typesafe for handles, so don't allow copy constructors on this platform by default.
|
// 32-bit vulkan is not typesafe for handles, so don't allow copy constructors on this platform by default.
|
||||||
// To enable this feature on 32-bit platforms please define VULKAN_HPP_TYPESAFE_CONVERSION
|
// To enable this feature on 32-bit platforms please define VULKAN_HPP_TYPESAFE_CONVERSION
|
||||||
|
|
@ -1076,7 +1076,10 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
{
|
{
|
||||||
static_assert( StructureChainValidation<sizeof...( ChainElements ) - 1, ChainElements...>::valid,
|
static_assert( StructureChainValidation<sizeof...( ChainElements ) - 1, ChainElements...>::valid,
|
||||||
"The structure chain is not valid!" );
|
"The structure chain is not valid!" );
|
||||||
link<sizeof...( ChainElements ) - 1>();
|
link( &std::get<0>( *this ),
|
||||||
|
&std::get<0>( rhs ),
|
||||||
|
reinterpret_cast<VkBaseOutStructure *>( &std::get<0>( *this ) ),
|
||||||
|
reinterpret_cast<VkBaseInStructure const *>( &std::get<0>( rhs ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
StructureChain( StructureChain && rhs ) VULKAN_HPP_NOEXCEPT
|
StructureChain( StructureChain && rhs ) VULKAN_HPP_NOEXCEPT
|
||||||
|
|
@ -1084,7 +1087,10 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
{
|
{
|
||||||
static_assert( StructureChainValidation<sizeof...( ChainElements ) - 1, ChainElements...>::valid,
|
static_assert( StructureChainValidation<sizeof...( ChainElements ) - 1, ChainElements...>::valid,
|
||||||
"The structure chain is not valid!" );
|
"The structure chain is not valid!" );
|
||||||
link<sizeof...( ChainElements ) - 1>();
|
link( &std::get<0>( *this ),
|
||||||
|
&std::get<0>( rhs ),
|
||||||
|
reinterpret_cast<VkBaseOutStructure *>( &std::get<0>( *this ) ),
|
||||||
|
reinterpret_cast<VkBaseInStructure const *>( &std::get<0>( rhs ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
StructureChain( ChainElements const &... elems ) VULKAN_HPP_NOEXCEPT : std::tuple<ChainElements...>( elems... )
|
StructureChain( ChainElements const &... elems ) VULKAN_HPP_NOEXCEPT : std::tuple<ChainElements...>( elems... )
|
||||||
|
|
@ -1097,7 +1103,10 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
StructureChain & operator=( StructureChain const & rhs ) VULKAN_HPP_NOEXCEPT
|
StructureChain & operator=( StructureChain const & rhs ) VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
std::tuple<ChainElements...>::operator=( rhs );
|
std::tuple<ChainElements...>::operator=( rhs );
|
||||||
link<sizeof...( ChainElements ) - 1>();
|
link( &std::get<0>( *this ),
|
||||||
|
&std::get<0>( rhs ),
|
||||||
|
reinterpret_cast<VkBaseOutStructure *>( &std::get<0>( *this ) ),
|
||||||
|
reinterpret_cast<VkBaseInStructure const *>( &std::get<0>( rhs ) ) );
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1238,6 +1247,19 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
typename std::enable_if<Index == 0, void>::type link() VULKAN_HPP_NOEXCEPT
|
typename std::enable_if<Index == 0, void>::type link() VULKAN_HPP_NOEXCEPT
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
void link( void * dstBase, void const * srcBase, VkBaseOutStructure * dst, VkBaseInStructure const * src )
|
||||||
|
{
|
||||||
|
while ( src->pNext )
|
||||||
|
{
|
||||||
|
std::ptrdiff_t offset =
|
||||||
|
reinterpret_cast<char const *>( src->pNext ) - reinterpret_cast<char const *>( srcBase );
|
||||||
|
dst->pNext = reinterpret_cast<VkBaseOutStructure *>( reinterpret_cast<char *>( dstBase ) + offset );
|
||||||
|
dst = dst->pNext;
|
||||||
|
src = src->pNext;
|
||||||
|
}
|
||||||
|
dst->pNext = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
void unlink( VkBaseOutStructure const * pNext ) VULKAN_HPP_NOEXCEPT
|
void unlink( VkBaseOutStructure const * pNext ) VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
VkBaseOutStructure * elementPtr =
|
VkBaseOutStructure * elementPtr =
|
||||||
|
|
@ -10945,6 +10967,32 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//=== VK_EXT_image_view_min_lod ===
|
||||||
|
template <>
|
||||||
|
struct StructExtends<PhysicalDeviceImageViewMinLodFeaturesEXT, PhysicalDeviceFeatures2>
|
||||||
|
{
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
value = true
|
||||||
|
};
|
||||||
|
};
|
||||||
|
template <>
|
||||||
|
struct StructExtends<PhysicalDeviceImageViewMinLodFeaturesEXT, DeviceCreateInfo>
|
||||||
|
{
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
value = true
|
||||||
|
};
|
||||||
|
};
|
||||||
|
template <>
|
||||||
|
struct StructExtends<ImageViewMinLodCreateInfoEXT, ImageViewCreateInfo>
|
||||||
|
{
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
value = true
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
//=== VK_EXT_multi_draw ===
|
//=== VK_EXT_multi_draw ===
|
||||||
template <>
|
template <>
|
||||||
struct StructExtends<PhysicalDeviceMultiDrawFeaturesEXT, PhysicalDeviceFeatures2>
|
struct StructExtends<PhysicalDeviceMultiDrawFeaturesEXT, PhysicalDeviceFeatures2>
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ extern "C" {
|
||||||
#define VK_API_VERSION_1_0 VK_MAKE_API_VERSION(0, 1, 0, 0)// Patch version should always be set to 0
|
#define VK_API_VERSION_1_0 VK_MAKE_API_VERSION(0, 1, 0, 0)// Patch version should always be set to 0
|
||||||
|
|
||||||
// Version of this file
|
// Version of this file
|
||||||
#define VK_HEADER_VERSION 198
|
#define VK_HEADER_VERSION 199
|
||||||
|
|
||||||
// Complete version of this file
|
// Complete version of this file
|
||||||
#define VK_HEADER_VERSION_COMPLETE VK_MAKE_API_VERSION(0, 1, 2, VK_HEADER_VERSION)
|
#define VK_HEADER_VERSION_COMPLETE VK_MAKE_API_VERSION(0, 1, 2, VK_HEADER_VERSION)
|
||||||
|
|
@ -897,6 +897,8 @@ typedef enum VkStructureType {
|
||||||
VK_STRUCTURE_TYPE_PIPELINE_COLOR_WRITE_CREATE_INFO_EXT = 1000381001,
|
VK_STRUCTURE_TYPE_PIPELINE_COLOR_WRITE_CREATE_INFO_EXT = 1000381001,
|
||||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES_EXT = 1000388000,
|
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES_EXT = 1000388000,
|
||||||
VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_EXT = 1000388001,
|
VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_EXT = 1000388001,
|
||||||
|
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_VIEW_MIN_LOD_FEATURES_EXT = 1000391000,
|
||||||
|
VK_STRUCTURE_TYPE_IMAGE_VIEW_MIN_LOD_CREATE_INFO_EXT = 1000391001,
|
||||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_FEATURES_EXT = 1000392000,
|
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_FEATURES_EXT = 1000392000,
|
||||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT = 1000392001,
|
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT = 1000392001,
|
||||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BORDER_COLOR_SWIZZLE_FEATURES_EXT = 1000411000,
|
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BORDER_COLOR_SWIZZLE_FEATURES_EXT = 1000411000,
|
||||||
|
|
@ -5352,6 +5354,7 @@ typedef enum VkDriverId {
|
||||||
VK_DRIVER_ID_MESA_TURNIP = 18,
|
VK_DRIVER_ID_MESA_TURNIP = 18,
|
||||||
VK_DRIVER_ID_MESA_V3DV = 19,
|
VK_DRIVER_ID_MESA_V3DV = 19,
|
||||||
VK_DRIVER_ID_MESA_PANVK = 20,
|
VK_DRIVER_ID_MESA_PANVK = 20,
|
||||||
|
VK_DRIVER_ID_SAMSUNG_PROPRIETARY = 21,
|
||||||
VK_DRIVER_ID_AMD_PROPRIETARY_KHR = VK_DRIVER_ID_AMD_PROPRIETARY,
|
VK_DRIVER_ID_AMD_PROPRIETARY_KHR = VK_DRIVER_ID_AMD_PROPRIETARY,
|
||||||
VK_DRIVER_ID_AMD_OPEN_SOURCE_KHR = VK_DRIVER_ID_AMD_OPEN_SOURCE,
|
VK_DRIVER_ID_AMD_OPEN_SOURCE_KHR = VK_DRIVER_ID_AMD_OPEN_SOURCE,
|
||||||
VK_DRIVER_ID_MESA_RADV_KHR = VK_DRIVER_ID_MESA_RADV,
|
VK_DRIVER_ID_MESA_RADV_KHR = VK_DRIVER_ID_MESA_RADV,
|
||||||
|
|
@ -13002,6 +13005,23 @@ typedef struct VkQueueFamilyGlobalPriorityPropertiesEXT {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#define VK_EXT_image_view_min_lod 1
|
||||||
|
#define VK_EXT_IMAGE_VIEW_MIN_LOD_SPEC_VERSION 1
|
||||||
|
#define VK_EXT_IMAGE_VIEW_MIN_LOD_EXTENSION_NAME "VK_EXT_image_view_min_lod"
|
||||||
|
typedef struct VkPhysicalDeviceImageViewMinLodFeaturesEXT {
|
||||||
|
VkStructureType sType;
|
||||||
|
void* pNext;
|
||||||
|
VkBool32 minLod;
|
||||||
|
} VkPhysicalDeviceImageViewMinLodFeaturesEXT;
|
||||||
|
|
||||||
|
typedef struct VkImageViewMinLodCreateInfoEXT {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
float minLod;
|
||||||
|
} VkImageViewMinLodCreateInfoEXT;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define VK_EXT_multi_draw 1
|
#define VK_EXT_multi_draw 1
|
||||||
#define VK_EXT_MULTI_DRAW_SPEC_VERSION 1
|
#define VK_EXT_MULTI_DRAW_SPEC_VERSION 1
|
||||||
#define VK_EXT_MULTI_DRAW_EXTENSION_NAME "VK_EXT_multi_draw"
|
#define VK_EXT_MULTI_DRAW_EXTENSION_NAME "VK_EXT_multi_draw"
|
||||||
|
|
|
||||||
|
|
@ -878,6 +878,8 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
ePhysicalDeviceGlobalPriorityQueryFeaturesEXT =
|
ePhysicalDeviceGlobalPriorityQueryFeaturesEXT =
|
||||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES_EXT,
|
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES_EXT,
|
||||||
eQueueFamilyGlobalPriorityPropertiesEXT = VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_EXT,
|
eQueueFamilyGlobalPriorityPropertiesEXT = VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_EXT,
|
||||||
|
ePhysicalDeviceImageViewMinLodFeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_VIEW_MIN_LOD_FEATURES_EXT,
|
||||||
|
eImageViewMinLodCreateInfoEXT = VK_STRUCTURE_TYPE_IMAGE_VIEW_MIN_LOD_CREATE_INFO_EXT,
|
||||||
ePhysicalDeviceMultiDrawFeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_FEATURES_EXT,
|
ePhysicalDeviceMultiDrawFeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_FEATURES_EXT,
|
||||||
ePhysicalDeviceMultiDrawPropertiesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT,
|
ePhysicalDeviceMultiDrawPropertiesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT,
|
||||||
ePhysicalDeviceBorderColorSwizzleFeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BORDER_COLOR_SWIZZLE_FEATURES_EXT,
|
ePhysicalDeviceBorderColorSwizzleFeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BORDER_COLOR_SWIZZLE_FEATURES_EXT,
|
||||||
|
|
@ -1837,6 +1839,8 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
case StructureType::ePhysicalDeviceGlobalPriorityQueryFeaturesEXT:
|
case StructureType::ePhysicalDeviceGlobalPriorityQueryFeaturesEXT:
|
||||||
return "PhysicalDeviceGlobalPriorityQueryFeaturesEXT";
|
return "PhysicalDeviceGlobalPriorityQueryFeaturesEXT";
|
||||||
case StructureType::eQueueFamilyGlobalPriorityPropertiesEXT: return "QueueFamilyGlobalPriorityPropertiesEXT";
|
case StructureType::eQueueFamilyGlobalPriorityPropertiesEXT: return "QueueFamilyGlobalPriorityPropertiesEXT";
|
||||||
|
case StructureType::ePhysicalDeviceImageViewMinLodFeaturesEXT: return "PhysicalDeviceImageViewMinLodFeaturesEXT";
|
||||||
|
case StructureType::eImageViewMinLodCreateInfoEXT: return "ImageViewMinLodCreateInfoEXT";
|
||||||
case StructureType::ePhysicalDeviceMultiDrawFeaturesEXT: return "PhysicalDeviceMultiDrawFeaturesEXT";
|
case StructureType::ePhysicalDeviceMultiDrawFeaturesEXT: return "PhysicalDeviceMultiDrawFeaturesEXT";
|
||||||
case StructureType::ePhysicalDeviceMultiDrawPropertiesEXT: return "PhysicalDeviceMultiDrawPropertiesEXT";
|
case StructureType::ePhysicalDeviceMultiDrawPropertiesEXT: return "PhysicalDeviceMultiDrawPropertiesEXT";
|
||||||
case StructureType::ePhysicalDeviceBorderColorSwizzleFeaturesEXT:
|
case StructureType::ePhysicalDeviceBorderColorSwizzleFeaturesEXT:
|
||||||
|
|
@ -5208,7 +5212,8 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
eVerisiliconProprietary = VK_DRIVER_ID_VERISILICON_PROPRIETARY,
|
eVerisiliconProprietary = VK_DRIVER_ID_VERISILICON_PROPRIETARY,
|
||||||
eMesaTurnip = VK_DRIVER_ID_MESA_TURNIP,
|
eMesaTurnip = VK_DRIVER_ID_MESA_TURNIP,
|
||||||
eMesaV3Dv = VK_DRIVER_ID_MESA_V3DV,
|
eMesaV3Dv = VK_DRIVER_ID_MESA_V3DV,
|
||||||
eMesaPanvk = VK_DRIVER_ID_MESA_PANVK
|
eMesaPanvk = VK_DRIVER_ID_MESA_PANVK,
|
||||||
|
eSamsungProprietary = VK_DRIVER_ID_SAMSUNG_PROPRIETARY
|
||||||
};
|
};
|
||||||
using DriverIdKHR = DriverId;
|
using DriverIdKHR = DriverId;
|
||||||
|
|
||||||
|
|
@ -5236,6 +5241,7 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
case DriverId::eMesaTurnip: return "MesaTurnip";
|
case DriverId::eMesaTurnip: return "MesaTurnip";
|
||||||
case DriverId::eMesaV3Dv: return "MesaV3Dv";
|
case DriverId::eMesaV3Dv: return "MesaV3Dv";
|
||||||
case DriverId::eMesaPanvk: return "MesaPanvk";
|
case DriverId::eMesaPanvk: return "MesaPanvk";
|
||||||
|
case DriverId::eSamsungProprietary: return "SamsungProprietary";
|
||||||
default: return "invalid ( " + VULKAN_HPP_NAMESPACE::toHexString( static_cast<uint32_t>( value ) ) + " )";
|
default: return "invalid ( " + VULKAN_HPP_NAMESPACE::toHexString( static_cast<uint32_t>( value ) ) + " )";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -1273,6 +1273,10 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
struct PhysicalDeviceGlobalPriorityQueryFeaturesEXT;
|
struct PhysicalDeviceGlobalPriorityQueryFeaturesEXT;
|
||||||
struct QueueFamilyGlobalPriorityPropertiesEXT;
|
struct QueueFamilyGlobalPriorityPropertiesEXT;
|
||||||
|
|
||||||
|
//=== VK_EXT_image_view_min_lod ===
|
||||||
|
struct PhysicalDeviceImageViewMinLodFeaturesEXT;
|
||||||
|
struct ImageViewMinLodCreateInfoEXT;
|
||||||
|
|
||||||
//=== VK_EXT_multi_draw ===
|
//=== VK_EXT_multi_draw ===
|
||||||
struct PhysicalDeviceMultiDrawFeaturesEXT;
|
struct PhysicalDeviceMultiDrawFeaturesEXT;
|
||||||
struct PhysicalDeviceMultiDrawPropertiesEXT;
|
struct PhysicalDeviceMultiDrawPropertiesEXT;
|
||||||
|
|
|
||||||
|
|
@ -3016,11 +3016,11 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
physicalDevices.resize( physicalDeviceCount );
|
physicalDevices.resize( physicalDeviceCount );
|
||||||
result = static_cast<VULKAN_HPP_NAMESPACE::Result>( dispatcher->vkEnumeratePhysicalDevices(
|
result = static_cast<VULKAN_HPP_NAMESPACE::Result>( dispatcher->vkEnumeratePhysicalDevices(
|
||||||
static_cast<VkInstance>( *instance ), &physicalDeviceCount, physicalDevices.data() ) );
|
static_cast<VkInstance>( *instance ), &physicalDeviceCount, physicalDevices.data() ) );
|
||||||
VULKAN_HPP_ASSERT( physicalDeviceCount <= physicalDevices.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
|
VULKAN_HPP_ASSERT( physicalDeviceCount <= physicalDevices.size() );
|
||||||
this->reserve( physicalDeviceCount );
|
this->reserve( physicalDeviceCount );
|
||||||
for ( auto const & physicalDevice : physicalDevices )
|
for ( auto const & physicalDevice : physicalDevices )
|
||||||
{
|
{
|
||||||
|
|
@ -6444,11 +6444,11 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
displays.resize( displayCount );
|
displays.resize( displayCount );
|
||||||
result = static_cast<VULKAN_HPP_NAMESPACE::Result>( dispatcher->vkGetDisplayPlaneSupportedDisplaysKHR(
|
result = static_cast<VULKAN_HPP_NAMESPACE::Result>( dispatcher->vkGetDisplayPlaneSupportedDisplaysKHR(
|
||||||
static_cast<VkPhysicalDevice>( *physicalDevice ), planeIndex, &displayCount, displays.data() ) );
|
static_cast<VkPhysicalDevice>( *physicalDevice ), planeIndex, &displayCount, displays.data() ) );
|
||||||
VULKAN_HPP_ASSERT( displayCount <= displays.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
|
VULKAN_HPP_ASSERT( displayCount <= displays.size() );
|
||||||
this->reserve( displayCount );
|
this->reserve( displayCount );
|
||||||
for ( auto const & displayKHR : displays )
|
for ( auto const & displayKHR : displays )
|
||||||
{
|
{
|
||||||
|
|
@ -9700,17 +9700,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
layerName ? layerName->c_str() : nullptr,
|
layerName ? layerName->c_str() : nullptr,
|
||||||
&propertyCount,
|
&propertyCount,
|
||||||
reinterpret_cast<VkExtensionProperties *>( properties.data() ) ) );
|
reinterpret_cast<VkExtensionProperties *>( properties.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( propertyCount < properties.size() ) )
|
|
||||||
{
|
|
||||||
properties.resize( propertyCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::Context::enumerateInstanceExtensionProperties" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::Context::enumerateInstanceExtensionProperties" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
||||||
|
if ( propertyCount < properties.size() )
|
||||||
|
{
|
||||||
|
properties.resize( propertyCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -9735,18 +9738,21 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
layerName ? layerName->c_str() : nullptr,
|
layerName ? layerName->c_str() : nullptr,
|
||||||
&propertyCount,
|
&propertyCount,
|
||||||
reinterpret_cast<VkExtensionProperties *>( properties.data() ) ) );
|
reinterpret_cast<VkExtensionProperties *>( properties.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( propertyCount < properties.size() ) )
|
|
||||||
{
|
|
||||||
properties.resize( propertyCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result,
|
throwResultException( result,
|
||||||
VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceExtensionProperties" );
|
VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceExtensionProperties" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
||||||
|
if ( propertyCount < properties.size() )
|
||||||
|
{
|
||||||
|
properties.resize( propertyCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -9765,17 +9771,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
properties.resize( propertyCount );
|
properties.resize( propertyCount );
|
||||||
result = static_cast<VULKAN_HPP_NAMESPACE::Result>( getDispatcher()->vkEnumerateInstanceLayerProperties(
|
result = static_cast<VULKAN_HPP_NAMESPACE::Result>( getDispatcher()->vkEnumerateInstanceLayerProperties(
|
||||||
&propertyCount, reinterpret_cast<VkLayerProperties *>( properties.data() ) ) );
|
&propertyCount, reinterpret_cast<VkLayerProperties *>( properties.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( propertyCount < properties.size() ) )
|
|
||||||
{
|
|
||||||
properties.resize( propertyCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::Context::enumerateInstanceLayerProperties" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::Context::enumerateInstanceLayerProperties" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
||||||
|
if ( propertyCount < properties.size() )
|
||||||
|
{
|
||||||
|
properties.resize( propertyCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -9796,17 +9805,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
||||||
&propertyCount,
|
&propertyCount,
|
||||||
reinterpret_cast<VkLayerProperties *>( properties.data() ) ) );
|
reinterpret_cast<VkLayerProperties *>( properties.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( propertyCount < properties.size() ) )
|
|
||||||
{
|
|
||||||
properties.resize( propertyCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceLayerProperties" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceLayerProperties" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
||||||
|
if ( propertyCount < properties.size() )
|
||||||
|
{
|
||||||
|
properties.resize( propertyCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -10254,17 +10266,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkPipelineCache>( m_pipelineCache ),
|
static_cast<VkPipelineCache>( m_pipelineCache ),
|
||||||
&dataSize,
|
&dataSize,
|
||||||
reinterpret_cast<void *>( data.data() ) ) );
|
reinterpret_cast<void *>( data.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( dataSize <= data.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( dataSize < data.size() ) )
|
|
||||||
{
|
|
||||||
data.resize( dataSize );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PipelineCache::getData" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PipelineCache::getData" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( dataSize <= data.size() );
|
||||||
|
if ( dataSize < data.size() )
|
||||||
|
{
|
||||||
|
data.resize( dataSize );
|
||||||
|
}
|
||||||
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -11052,18 +11067,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkInstance>( m_instance ),
|
static_cast<VkInstance>( m_instance ),
|
||||||
&physicalDeviceGroupCount,
|
&physicalDeviceGroupCount,
|
||||||
reinterpret_cast<VkPhysicalDeviceGroupProperties *>( physicalDeviceGroupProperties.data() ) ) );
|
reinterpret_cast<VkPhysicalDeviceGroupProperties *>( physicalDeviceGroupProperties.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( physicalDeviceGroupCount <= physicalDeviceGroupProperties.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) &&
|
|
||||||
( physicalDeviceGroupCount < physicalDeviceGroupProperties.size() ) )
|
|
||||||
{
|
|
||||||
physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroups" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroups" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( physicalDeviceGroupCount <= physicalDeviceGroupProperties.size() );
|
||||||
|
if ( physicalDeviceGroupCount < physicalDeviceGroupProperties.size() )
|
||||||
|
{
|
||||||
|
physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return physicalDeviceGroupProperties;
|
return physicalDeviceGroupProperties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -11625,17 +11642,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkSurfaceKHR>( surface ),
|
static_cast<VkSurfaceKHR>( surface ),
|
||||||
&surfaceFormatCount,
|
&surfaceFormatCount,
|
||||||
reinterpret_cast<VkSurfaceFormatKHR *>( surfaceFormats.data() ) ) );
|
reinterpret_cast<VkSurfaceFormatKHR *>( surfaceFormats.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( surfaceFormatCount < surfaceFormats.size() ) )
|
|
||||||
{
|
|
||||||
surfaceFormats.resize( surfaceFormatCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormatsKHR" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormatsKHR" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
|
||||||
|
if ( surfaceFormatCount < surfaceFormats.size() )
|
||||||
|
{
|
||||||
|
surfaceFormats.resize( surfaceFormatCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return surfaceFormats;
|
return surfaceFormats;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -11665,17 +11685,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkSurfaceKHR>( surface ),
|
static_cast<VkSurfaceKHR>( surface ),
|
||||||
&presentModeCount,
|
&presentModeCount,
|
||||||
reinterpret_cast<VkPresentModeKHR *>( presentModes.data() ) ) );
|
reinterpret_cast<VkPresentModeKHR *>( presentModes.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( presentModeCount <= presentModes.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( presentModeCount < presentModes.size() ) )
|
|
||||||
{
|
|
||||||
presentModes.resize( presentModeCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfacePresentModesKHR" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfacePresentModesKHR" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( presentModeCount <= presentModes.size() );
|
||||||
|
if ( presentModeCount < presentModes.size() )
|
||||||
|
{
|
||||||
|
presentModes.resize( presentModeCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return presentModes;
|
return presentModes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -11711,17 +11734,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkSwapchainKHR>( m_swapchain ),
|
static_cast<VkSwapchainKHR>( m_swapchain ),
|
||||||
&swapchainImageCount,
|
&swapchainImageCount,
|
||||||
swapchainImages.data() ) );
|
swapchainImages.data() ) );
|
||||||
VULKAN_HPP_ASSERT( swapchainImageCount <= swapchainImages.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( swapchainImageCount < swapchainImages.size() ) )
|
|
||||||
{
|
|
||||||
swapchainImages.resize( swapchainImageCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::SwapchainKHR::getImages" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::SwapchainKHR::getImages" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( swapchainImageCount <= swapchainImages.size() );
|
||||||
|
if ( swapchainImageCount < swapchainImages.size() )
|
||||||
|
{
|
||||||
|
swapchainImages.resize( swapchainImageCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return swapchainImages;
|
return swapchainImages;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -11832,17 +11858,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkSurfaceKHR>( surface ),
|
static_cast<VkSurfaceKHR>( surface ),
|
||||||
&rectCount,
|
&rectCount,
|
||||||
reinterpret_cast<VkRect2D *>( rects.data() ) ) );
|
reinterpret_cast<VkRect2D *>( rects.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( rectCount <= rects.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( rectCount < rects.size() ) )
|
|
||||||
{
|
|
||||||
rects.resize( rectCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getPresentRectanglesKHR" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getPresentRectanglesKHR" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( rectCount <= rects.size() );
|
||||||
|
if ( rectCount < rects.size() )
|
||||||
|
{
|
||||||
|
rects.resize( rectCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return rects;
|
return rects;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -11890,17 +11919,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
||||||
&propertyCount,
|
&propertyCount,
|
||||||
reinterpret_cast<VkDisplayPropertiesKHR *>( properties.data() ) ) );
|
reinterpret_cast<VkDisplayPropertiesKHR *>( properties.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( propertyCount < properties.size() ) )
|
|
||||||
{
|
|
||||||
properties.resize( propertyCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPropertiesKHR" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPropertiesKHR" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
||||||
|
if ( propertyCount < properties.size() )
|
||||||
|
{
|
||||||
|
properties.resize( propertyCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -11927,17 +11959,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
||||||
&propertyCount,
|
&propertyCount,
|
||||||
reinterpret_cast<VkDisplayPlanePropertiesKHR *>( properties.data() ) ) );
|
reinterpret_cast<VkDisplayPlanePropertiesKHR *>( properties.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( propertyCount < properties.size() ) )
|
|
||||||
{
|
|
||||||
properties.resize( propertyCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlanePropertiesKHR" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlanePropertiesKHR" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
||||||
|
if ( propertyCount < properties.size() )
|
||||||
|
{
|
||||||
|
properties.resize( propertyCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -11971,17 +12006,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkDisplayKHR>( m_display ),
|
static_cast<VkDisplayKHR>( m_display ),
|
||||||
&propertyCount,
|
&propertyCount,
|
||||||
reinterpret_cast<VkDisplayModePropertiesKHR *>( properties.data() ) ) );
|
reinterpret_cast<VkDisplayModePropertiesKHR *>( properties.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( propertyCount < properties.size() ) )
|
|
||||||
{
|
|
||||||
properties.resize( propertyCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::DisplayKHR::getModeProperties" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::DisplayKHR::getModeProperties" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
||||||
|
if ( propertyCount < properties.size() )
|
||||||
|
{
|
||||||
|
properties.resize( propertyCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -12298,18 +12336,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
reinterpret_cast<const VkPhysicalDeviceVideoFormatInfoKHR *>( &videoFormatInfo ),
|
reinterpret_cast<const VkPhysicalDeviceVideoFormatInfoKHR *>( &videoFormatInfo ),
|
||||||
&videoFormatPropertyCount,
|
&videoFormatPropertyCount,
|
||||||
reinterpret_cast<VkVideoFormatPropertiesKHR *>( videoFormatProperties.data() ) ) );
|
reinterpret_cast<VkVideoFormatPropertiesKHR *>( videoFormatProperties.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( videoFormatPropertyCount <= videoFormatProperties.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) &&
|
|
||||||
( videoFormatPropertyCount < videoFormatProperties.size() ) )
|
|
||||||
{
|
|
||||||
videoFormatProperties.resize( videoFormatPropertyCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoFormatPropertiesKHR" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoFormatPropertiesKHR" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( videoFormatPropertyCount <= videoFormatProperties.size() );
|
||||||
|
if ( videoFormatPropertyCount < videoFormatProperties.size() )
|
||||||
|
{
|
||||||
|
videoFormatProperties.resize( videoFormatPropertyCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return videoFormatProperties;
|
return videoFormatProperties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -12345,18 +12385,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkVideoSessionKHR>( m_videoSession ),
|
static_cast<VkVideoSessionKHR>( m_videoSession ),
|
||||||
&videoSessionMemoryRequirementsCount,
|
&videoSessionMemoryRequirementsCount,
|
||||||
reinterpret_cast<VkVideoGetMemoryPropertiesKHR *>( videoSessionMemoryRequirements.data() ) ) );
|
reinterpret_cast<VkVideoGetMemoryPropertiesKHR *>( videoSessionMemoryRequirements.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( videoSessionMemoryRequirementsCount <= videoSessionMemoryRequirements.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) &&
|
|
||||||
( videoSessionMemoryRequirementsCount < videoSessionMemoryRequirements.size() ) )
|
|
||||||
{
|
|
||||||
videoSessionMemoryRequirements.resize( videoSessionMemoryRequirementsCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::VideoSessionKHR::getMemoryRequirements" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::VideoSessionKHR::getMemoryRequirements" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( videoSessionMemoryRequirementsCount <= videoSessionMemoryRequirements.size() );
|
||||||
|
if ( videoSessionMemoryRequirementsCount < videoSessionMemoryRequirements.size() )
|
||||||
|
{
|
||||||
|
videoSessionMemoryRequirements.resize( videoSessionMemoryRequirementsCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return videoSessionMemoryRequirements;
|
return videoSessionMemoryRequirements;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -12720,17 +12762,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkShaderInfoTypeAMD>( infoType ),
|
static_cast<VkShaderInfoTypeAMD>( infoType ),
|
||||||
&infoSize,
|
&infoSize,
|
||||||
reinterpret_cast<void *>( info.data() ) ) );
|
reinterpret_cast<void *>( info.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( infoSize <= info.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( infoSize < info.size() ) )
|
|
||||||
{
|
|
||||||
info.resize( infoSize );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::Pipeline::getShaderInfoAMD" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::Pipeline::getShaderInfoAMD" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( infoSize <= info.size() );
|
||||||
|
if ( infoSize < info.size() )
|
||||||
|
{
|
||||||
|
info.resize( infoSize );
|
||||||
|
}
|
||||||
|
}
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -13157,18 +13202,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkInstance>( m_instance ),
|
static_cast<VkInstance>( m_instance ),
|
||||||
&physicalDeviceGroupCount,
|
&physicalDeviceGroupCount,
|
||||||
reinterpret_cast<VkPhysicalDeviceGroupProperties *>( physicalDeviceGroupProperties.data() ) ) );
|
reinterpret_cast<VkPhysicalDeviceGroupProperties *>( physicalDeviceGroupProperties.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( physicalDeviceGroupCount <= physicalDeviceGroupProperties.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) &&
|
|
||||||
( physicalDeviceGroupCount < physicalDeviceGroupProperties.size() ) )
|
|
||||||
{
|
|
||||||
physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroupsKHR" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroupsKHR" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( physicalDeviceGroupCount <= physicalDeviceGroupProperties.size() );
|
||||||
|
if ( physicalDeviceGroupCount < physicalDeviceGroupProperties.size() )
|
||||||
|
{
|
||||||
|
physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return physicalDeviceGroupProperties;
|
return physicalDeviceGroupProperties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -13638,18 +13685,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkSwapchainKHR>( m_swapchain ),
|
static_cast<VkSwapchainKHR>( m_swapchain ),
|
||||||
&presentationTimingCount,
|
&presentationTimingCount,
|
||||||
reinterpret_cast<VkPastPresentationTimingGOOGLE *>( presentationTimings.data() ) ) );
|
reinterpret_cast<VkPastPresentationTimingGOOGLE *>( presentationTimings.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( presentationTimingCount <= presentationTimings.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) &&
|
|
||||||
( presentationTimingCount < presentationTimings.size() ) )
|
|
||||||
{
|
|
||||||
presentationTimings.resize( presentationTimingCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::SwapchainKHR::getPastPresentationTimingGOOGLE" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::SwapchainKHR::getPastPresentationTimingGOOGLE" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( presentationTimingCount <= presentationTimings.size() );
|
||||||
|
if ( presentationTimingCount < presentationTimings.size() )
|
||||||
|
{
|
||||||
|
presentationTimings.resize( presentationTimingCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return presentationTimings;
|
return presentationTimings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -14002,17 +14051,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
|
reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
|
||||||
&surfaceFormatCount,
|
&surfaceFormatCount,
|
||||||
reinterpret_cast<VkSurfaceFormat2KHR *>( surfaceFormats.data() ) ) );
|
reinterpret_cast<VkSurfaceFormat2KHR *>( surfaceFormats.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( surfaceFormatCount < surfaceFormats.size() ) )
|
|
||||||
{
|
|
||||||
surfaceFormats.resize( surfaceFormatCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormats2KHR" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormats2KHR" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
|
||||||
|
if ( surfaceFormatCount < surfaceFormats.size() )
|
||||||
|
{
|
||||||
|
surfaceFormats.resize( surfaceFormatCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return surfaceFormats;
|
return surfaceFormats;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -14039,17 +14091,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
||||||
&propertyCount,
|
&propertyCount,
|
||||||
reinterpret_cast<VkDisplayProperties2KHR *>( properties.data() ) ) );
|
reinterpret_cast<VkDisplayProperties2KHR *>( properties.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( propertyCount < properties.size() ) )
|
|
||||||
{
|
|
||||||
properties.resize( propertyCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayProperties2KHR" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayProperties2KHR" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
||||||
|
if ( propertyCount < properties.size() )
|
||||||
|
{
|
||||||
|
properties.resize( propertyCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -14076,17 +14131,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
||||||
&propertyCount,
|
&propertyCount,
|
||||||
reinterpret_cast<VkDisplayPlaneProperties2KHR *>( properties.data() ) ) );
|
reinterpret_cast<VkDisplayPlaneProperties2KHR *>( properties.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( propertyCount < properties.size() ) )
|
|
||||||
{
|
|
||||||
properties.resize( propertyCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneProperties2KHR" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneProperties2KHR" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
||||||
|
if ( propertyCount < properties.size() )
|
||||||
|
{
|
||||||
|
properties.resize( propertyCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -14115,17 +14173,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkDisplayKHR>( m_display ),
|
static_cast<VkDisplayKHR>( m_display ),
|
||||||
&propertyCount,
|
&propertyCount,
|
||||||
reinterpret_cast<VkDisplayModeProperties2KHR *>( properties.data() ) ) );
|
reinterpret_cast<VkDisplayModeProperties2KHR *>( properties.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( propertyCount < properties.size() ) )
|
|
||||||
{
|
|
||||||
properties.resize( propertyCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::DisplayKHR::getModeProperties2" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::DisplayKHR::getModeProperties2" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
||||||
|
if ( propertyCount < properties.size() )
|
||||||
|
{
|
||||||
|
properties.resize( propertyCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -14938,17 +14999,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkValidationCacheEXT>( m_validationCache ),
|
static_cast<VkValidationCacheEXT>( m_validationCache ),
|
||||||
&dataSize,
|
&dataSize,
|
||||||
reinterpret_cast<void *>( data.data() ) ) );
|
reinterpret_cast<void *>( data.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( dataSize <= data.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( dataSize < data.size() ) )
|
|
||||||
{
|
|
||||||
data.resize( dataSize );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::ValidationCacheEXT::getData" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::ValidationCacheEXT::getData" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( dataSize <= data.size() );
|
||||||
|
if ( dataSize < data.size() )
|
||||||
|
{
|
||||||
|
data.resize( dataSize );
|
||||||
|
}
|
||||||
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -15408,17 +15472,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
||||||
&timeDomainCount,
|
&timeDomainCount,
|
||||||
reinterpret_cast<VkTimeDomainEXT *>( timeDomains.data() ) ) );
|
reinterpret_cast<VkTimeDomainEXT *>( timeDomains.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( timeDomainCount <= timeDomains.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( timeDomainCount < timeDomains.size() ) )
|
|
||||||
{
|
|
||||||
timeDomains.resize( timeDomainCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCalibrateableTimeDomainsEXT" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCalibrateableTimeDomainsEXT" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( timeDomainCount <= timeDomains.size() );
|
||||||
|
if ( timeDomainCount < timeDomains.size() )
|
||||||
|
{
|
||||||
|
timeDomains.resize( timeDomainCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return timeDomains;
|
return timeDomains;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -15793,18 +15860,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
||||||
&fragmentShadingRateCount,
|
&fragmentShadingRateCount,
|
||||||
reinterpret_cast<VkPhysicalDeviceFragmentShadingRateKHR *>( fragmentShadingRates.data() ) ) );
|
reinterpret_cast<VkPhysicalDeviceFragmentShadingRateKHR *>( fragmentShadingRates.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( fragmentShadingRateCount <= fragmentShadingRates.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) &&
|
|
||||||
( fragmentShadingRateCount < fragmentShadingRates.size() ) )
|
|
||||||
{
|
|
||||||
fragmentShadingRates.resize( fragmentShadingRateCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getFragmentShadingRatesKHR" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getFragmentShadingRatesKHR" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( fragmentShadingRateCount <= fragmentShadingRates.size() );
|
||||||
|
if ( fragmentShadingRateCount < fragmentShadingRates.size() )
|
||||||
|
{
|
||||||
|
fragmentShadingRates.resize( fragmentShadingRateCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return fragmentShadingRates;
|
return fragmentShadingRates;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -15858,17 +15927,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
||||||
&toolCount,
|
&toolCount,
|
||||||
reinterpret_cast<VkPhysicalDeviceToolPropertiesEXT *>( toolProperties.data() ) ) );
|
reinterpret_cast<VkPhysicalDeviceToolPropertiesEXT *>( toolProperties.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( toolCount <= toolProperties.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( toolCount < toolProperties.size() ) )
|
|
||||||
{
|
|
||||||
toolProperties.resize( toolCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getToolPropertiesEXT" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getToolPropertiesEXT" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( toolCount <= toolProperties.size() );
|
||||||
|
if ( toolCount < toolProperties.size() )
|
||||||
|
{
|
||||||
|
toolProperties.resize( toolCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return toolProperties;
|
return toolProperties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -15916,18 +15988,21 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
||||||
&propertyCount,
|
&propertyCount,
|
||||||
reinterpret_cast<VkCooperativeMatrixPropertiesNV *>( properties.data() ) ) );
|
reinterpret_cast<VkCooperativeMatrixPropertiesNV *>( properties.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( propertyCount < properties.size() ) )
|
|
||||||
{
|
|
||||||
properties.resize( propertyCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result,
|
throwResultException( result,
|
||||||
VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixPropertiesNV" );
|
VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixPropertiesNV" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
|
||||||
|
if ( propertyCount < properties.size() )
|
||||||
|
{
|
||||||
|
properties.resize( propertyCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -15956,18 +16031,21 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
||||||
&combinationCount,
|
&combinationCount,
|
||||||
reinterpret_cast<VkFramebufferMixedSamplesCombinationNV *>( combinations.data() ) ) );
|
reinterpret_cast<VkFramebufferMixedSamplesCombinationNV *>( combinations.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( combinationCount <= combinations.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( combinationCount < combinations.size() ) )
|
|
||||||
{
|
|
||||||
combinations.resize( combinationCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException(
|
throwResultException(
|
||||||
result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSupportedFramebufferMixedSamplesCombinationsNV" );
|
result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSupportedFramebufferMixedSamplesCombinationsNV" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( combinationCount <= combinations.size() );
|
||||||
|
if ( combinationCount < combinations.size() )
|
||||||
|
{
|
||||||
|
combinations.resize( combinationCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return combinations;
|
return combinations;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -16001,17 +16079,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
|
reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
|
||||||
&presentModeCount,
|
&presentModeCount,
|
||||||
reinterpret_cast<VkPresentModeKHR *>( presentModes.data() ) ) );
|
reinterpret_cast<VkPresentModeKHR *>( presentModes.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( presentModeCount <= presentModes.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( presentModeCount < presentModes.size() ) )
|
|
||||||
{
|
|
||||||
presentModes.resize( presentModeCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfacePresentModes2EXT" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfacePresentModes2EXT" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( presentModeCount <= presentModes.size() );
|
||||||
|
if ( presentModeCount < presentModes.size() )
|
||||||
|
{
|
||||||
|
presentModes.resize( presentModeCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return presentModes;
|
return presentModes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -16381,17 +16462,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
reinterpret_cast<const VkPipelineInfoKHR *>( &pipelineInfo ),
|
reinterpret_cast<const VkPipelineInfoKHR *>( &pipelineInfo ),
|
||||||
&executableCount,
|
&executableCount,
|
||||||
reinterpret_cast<VkPipelineExecutablePropertiesKHR *>( properties.data() ) ) );
|
reinterpret_cast<VkPipelineExecutablePropertiesKHR *>( properties.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( executableCount <= properties.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( executableCount < properties.size() ) )
|
|
||||||
{
|
|
||||||
properties.resize( executableCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutablePropertiesKHR" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutablePropertiesKHR" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( executableCount <= properties.size() );
|
||||||
|
if ( executableCount < properties.size() )
|
||||||
|
{
|
||||||
|
properties.resize( executableCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -16421,17 +16505,20 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
reinterpret_cast<const VkPipelineExecutableInfoKHR *>( &executableInfo ),
|
reinterpret_cast<const VkPipelineExecutableInfoKHR *>( &executableInfo ),
|
||||||
&statisticCount,
|
&statisticCount,
|
||||||
reinterpret_cast<VkPipelineExecutableStatisticKHR *>( statistics.data() ) ) );
|
reinterpret_cast<VkPipelineExecutableStatisticKHR *>( statistics.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( statisticCount <= statistics.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && ( statisticCount < statistics.size() ) )
|
|
||||||
{
|
|
||||||
statistics.resize( statisticCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutableStatisticsKHR" );
|
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutableStatisticsKHR" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( statisticCount <= statistics.size() );
|
||||||
|
if ( statisticCount < statistics.size() )
|
||||||
|
{
|
||||||
|
statistics.resize( statisticCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return statistics;
|
return statistics;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -16464,19 +16551,21 @@ namespace VULKAN_HPP_NAMESPACE
|
||||||
reinterpret_cast<const VkPipelineExecutableInfoKHR *>( &executableInfo ),
|
reinterpret_cast<const VkPipelineExecutableInfoKHR *>( &executableInfo ),
|
||||||
&internalRepresentationCount,
|
&internalRepresentationCount,
|
||||||
reinterpret_cast<VkPipelineExecutableInternalRepresentationKHR *>( internalRepresentations.data() ) ) );
|
reinterpret_cast<VkPipelineExecutableInternalRepresentationKHR *>( internalRepresentations.data() ) ) );
|
||||||
VULKAN_HPP_ASSERT( internalRepresentationCount <= internalRepresentations.size() );
|
|
||||||
}
|
}
|
||||||
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
} while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete );
|
||||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) &&
|
|
||||||
( internalRepresentationCount < internalRepresentations.size() ) )
|
|
||||||
{
|
|
||||||
internalRepresentations.resize( internalRepresentationCount );
|
|
||||||
}
|
|
||||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
throwResultException( result,
|
throwResultException( result,
|
||||||
VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutableInternalRepresentationsKHR" );
|
VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutableInternalRepresentationsKHR" );
|
||||||
}
|
}
|
||||||
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
|
{
|
||||||
|
VULKAN_HPP_ASSERT( internalRepresentationCount <= internalRepresentations.size() );
|
||||||
|
if ( internalRepresentationCount < internalRepresentations.size() )
|
||||||
|
{
|
||||||
|
internalRepresentations.resize( internalRepresentationCount );
|
||||||
|
}
|
||||||
|
}
|
||||||
return internalRepresentations;
|
return internalRepresentations;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -122,6 +122,7 @@ class GeneratorOptions:
|
||||||
removeExtensions=None,
|
removeExtensions=None,
|
||||||
emitExtensions=None,
|
emitExtensions=None,
|
||||||
emitSpirv=None,
|
emitSpirv=None,
|
||||||
|
emitFormats=None,
|
||||||
reparentEnums=True,
|
reparentEnums=True,
|
||||||
sortProcedure=regSortFeatures,
|
sortProcedure=regSortFeatures,
|
||||||
requireCommandAliases=False,
|
requireCommandAliases=False,
|
||||||
|
|
@ -157,6 +158,8 @@ class GeneratorOptions:
|
||||||
to None.
|
to None.
|
||||||
- emitSpirv - regex matching names of extensions and capabilities
|
- emitSpirv - regex matching names of extensions and capabilities
|
||||||
to actually emit interfaces for.
|
to actually emit interfaces for.
|
||||||
|
- emitFormats - regex matching names of formats to actually emit
|
||||||
|
interfaces for.
|
||||||
- reparentEnums - move <enum> elements which extend an enumerated
|
- reparentEnums - move <enum> elements which extend an enumerated
|
||||||
type from <feature> or <extension> elements to the target <enums>
|
type from <feature> or <extension> elements to the target <enums>
|
||||||
element. This is required for almost all purposes, but the
|
element. This is required for almost all purposes, but the
|
||||||
|
|
@ -222,6 +225,10 @@ class GeneratorOptions:
|
||||||
"""regex matching names of extensions and capabilities
|
"""regex matching names of extensions and capabilities
|
||||||
to actually emit interfaces for."""
|
to actually emit interfaces for."""
|
||||||
|
|
||||||
|
self.emitFormats = self.emptyRegex(emitFormats)
|
||||||
|
"""regex matching names of formats
|
||||||
|
to actually emit interfaces for."""
|
||||||
|
|
||||||
self.reparentEnums = reparentEnums
|
self.reparentEnums = reparentEnums
|
||||||
"""boolean specifying whether to remove <enum> elements from
|
"""boolean specifying whether to remove <enum> elements from
|
||||||
<feature> or <extension> when extending an <enums> type."""
|
<feature> or <extension> when extending an <enums> type."""
|
||||||
|
|
@ -906,6 +913,14 @@ class OutputGenerator:
|
||||||
Extend to generate as desired in your derived class."""
|
Extend to generate as desired in your derived class."""
|
||||||
return
|
return
|
||||||
|
|
||||||
|
def genFormat(self, format, formatinfo, alias):
|
||||||
|
"""Generate interface for a format element.
|
||||||
|
|
||||||
|
- formatinfo - FormatInfo
|
||||||
|
|
||||||
|
Extend to generate as desired in your derived class."""
|
||||||
|
return
|
||||||
|
|
||||||
def makeProtoName(self, name, tail):
|
def makeProtoName(self, name, tail):
|
||||||
"""Turn a `<proto>` `<name>` into C-language prototype
|
"""Turn a `<proto>` `<name>` into C-language prototype
|
||||||
and typedef declarations for that name.
|
and typedef declarations for that name.
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,9 @@ def makeGenOpts(args):
|
||||||
# SPIR-V capabilities / features to emit (list of extensions & capabilities)
|
# SPIR-V capabilities / features to emit (list of extensions & capabilities)
|
||||||
emitSpirv = args.emitSpirv
|
emitSpirv = args.emitSpirv
|
||||||
|
|
||||||
|
# Vulkan Formats to emit
|
||||||
|
emitFormats = args.emitFormats
|
||||||
|
|
||||||
# Features to include (list of features)
|
# Features to include (list of features)
|
||||||
features = args.feature
|
features = args.feature
|
||||||
|
|
||||||
|
|
@ -98,13 +101,14 @@ def makeGenOpts(args):
|
||||||
|
|
||||||
# Descriptive names for various regexp patterns used to select
|
# Descriptive names for various regexp patterns used to select
|
||||||
# versions and extensions
|
# versions and extensions
|
||||||
allSpirv = allFeatures = allExtensions = r'.*'
|
allFormats = allSpirv = allFeatures = allExtensions = r'.*'
|
||||||
|
|
||||||
# Turn lists of names/patterns into matching regular expressions
|
# Turn lists of names/patterns into matching regular expressions
|
||||||
addExtensionsPat = makeREstring(extensions, None)
|
addExtensionsPat = makeREstring(extensions, None)
|
||||||
removeExtensionsPat = makeREstring(removeExtensions, None)
|
removeExtensionsPat = makeREstring(removeExtensions, None)
|
||||||
emitExtensionsPat = makeREstring(emitExtensions, allExtensions)
|
emitExtensionsPat = makeREstring(emitExtensions, allExtensions)
|
||||||
emitSpirvPat = makeREstring(emitSpirv, allSpirv)
|
emitSpirvPat = makeREstring(emitSpirv, allSpirv)
|
||||||
|
emitFormatsPat = makeREstring(emitFormats, allFormats)
|
||||||
featuresPat = makeREstring(features, allFeatures)
|
featuresPat = makeREstring(features, allFeatures)
|
||||||
|
|
||||||
# Copyright text prefixing all headers (list of strings).
|
# Copyright text prefixing all headers (list of strings).
|
||||||
|
|
@ -578,6 +582,8 @@ def genTarget(args):
|
||||||
logDiag('* options.addExtensions =', options.addExtensions)
|
logDiag('* options.addExtensions =', options.addExtensions)
|
||||||
logDiag('* options.removeExtensions =', options.removeExtensions)
|
logDiag('* options.removeExtensions =', options.removeExtensions)
|
||||||
logDiag('* options.emitExtensions =', options.emitExtensions)
|
logDiag('* options.emitExtensions =', options.emitExtensions)
|
||||||
|
logDiag('* options.emitSpirv =', options.emitSpirv)
|
||||||
|
logDiag('* options.emitFormats =', options.emitFormats)
|
||||||
|
|
||||||
gen = createGenerator(errFile=errWarn,
|
gen = createGenerator(errFile=errWarn,
|
||||||
warnFile=errWarn,
|
warnFile=errWarn,
|
||||||
|
|
@ -610,6 +616,9 @@ if __name__ == '__main__':
|
||||||
parser.add_argument('-emitSpirv', action='append',
|
parser.add_argument('-emitSpirv', action='append',
|
||||||
default=[],
|
default=[],
|
||||||
help='Specify a SPIR-V extension or capability to emit in targets')
|
help='Specify a SPIR-V extension or capability to emit in targets')
|
||||||
|
parser.add_argument('-emitFormats', action='append',
|
||||||
|
default=[],
|
||||||
|
help='Specify Vulkan Formats to emit in targets')
|
||||||
parser.add_argument('-feature', action='append',
|
parser.add_argument('-feature', action='append',
|
||||||
default=[],
|
default=[],
|
||||||
help='Specify a core API feature name or names to add to targets')
|
help='Specify a core API feature name or names to add to targets')
|
||||||
|
|
|
||||||
|
|
@ -260,6 +260,12 @@ class SpirvInfo(BaseInfo):
|
||||||
def __init__(self, elem):
|
def __init__(self, elem):
|
||||||
BaseInfo.__init__(self, elem)
|
BaseInfo.__init__(self, elem)
|
||||||
|
|
||||||
|
class FormatInfo(BaseInfo):
|
||||||
|
"""Registry information about an API <format>."""
|
||||||
|
|
||||||
|
def __init__(self, elem):
|
||||||
|
BaseInfo.__init__(self, elem)
|
||||||
|
|
||||||
class Registry:
|
class Registry:
|
||||||
"""Object representing an API registry, loaded from an XML file."""
|
"""Object representing an API registry, loaded from an XML file."""
|
||||||
|
|
||||||
|
|
@ -311,6 +317,9 @@ class Registry:
|
||||||
self.spirvcapdict = {}
|
self.spirvcapdict = {}
|
||||||
"dictionary of FeatureInfo objects for `<spirvcapability>` elements keyed by spirv capability name"
|
"dictionary of FeatureInfo objects for `<spirvcapability>` elements keyed by spirv capability name"
|
||||||
|
|
||||||
|
self.formatsdict = {}
|
||||||
|
"dictionary of FeatureInfo objects for `<format>` elements keyed by VkFormat name"
|
||||||
|
|
||||||
self.emitFeatures = False
|
self.emitFeatures = False
|
||||||
"""True to actually emit features for a version / extension,
|
"""True to actually emit features for a version / extension,
|
||||||
or False to just treat them as emitted"""
|
or False to just treat them as emitted"""
|
||||||
|
|
@ -356,10 +365,10 @@ class Registry:
|
||||||
|
|
||||||
Intended for internal use only.
|
Intended for internal use only.
|
||||||
|
|
||||||
- elem - `<type>`/`<enums>`/`<enum>`/`<command>`/`<feature>`/`<extension>`/`<spirvextension>`/`<spirvcapability>` Element
|
- elem - `<type>`/`<enums>`/`<enum>`/`<command>`/`<feature>`/`<extension>`/`<spirvextension>`/`<spirvcapability>`/`<format>` Element
|
||||||
- info - corresponding {Type|Group|Enum|Cmd|Feature|Spirv}Info object
|
- info - corresponding {Type|Group|Enum|Cmd|Feature|Spirv}Info object
|
||||||
- infoName - 'type' / 'group' / 'enum' / 'command' / 'feature' / 'extension' / 'spirvextension' / 'spirvcapability'
|
- infoName - 'type' / 'group' / 'enum' / 'command' / 'feature' / 'extension' / 'spirvextension' / 'spirvcapability' / 'format'
|
||||||
- dictionary - self.{type|group|enum|cmd|api|ext|spirvext|spirvcap}dict
|
- dictionary - self.{type|group|enum|cmd|api|ext|format|spirvext|spirvcap}dict
|
||||||
|
|
||||||
If the Element has an 'api' attribute, the dictionary key is the
|
If the Element has an 'api' attribute, the dictionary key is the
|
||||||
tuple (name,api). If not, the key is the name. 'name' is an
|
tuple (name,api). If not, the key is the name. 'name' is an
|
||||||
|
|
@ -612,6 +621,10 @@ class Registry:
|
||||||
spirvInfo = SpirvInfo(spirv)
|
spirvInfo = SpirvInfo(spirv)
|
||||||
self.addElementInfo(spirv, spirvInfo, 'spirvcapability', self.spirvcapdict)
|
self.addElementInfo(spirv, spirvInfo, 'spirvcapability', self.spirvcapdict)
|
||||||
|
|
||||||
|
for format in self.reg.findall('formats/format'):
|
||||||
|
formatInfo = FormatInfo(format)
|
||||||
|
self.addElementInfo(format, formatInfo, 'format', self.formatsdict)
|
||||||
|
|
||||||
def dumpReg(self, maxlen=120, filehandle=sys.stdout):
|
def dumpReg(self, maxlen=120, filehandle=sys.stdout):
|
||||||
"""Dump all the dictionaries constructed from the Registry object.
|
"""Dump all the dictionaries constructed from the Registry object.
|
||||||
|
|
||||||
|
|
@ -651,6 +664,10 @@ class Registry:
|
||||||
for key in self.spirvcapdict:
|
for key in self.spirvcapdict:
|
||||||
write(' SPIR-V Capability', key, '->',
|
write(' SPIR-V Capability', key, '->',
|
||||||
etree.tostring(self.spirvcapdict[key].elem)[0:maxlen], file=filehandle)
|
etree.tostring(self.spirvcapdict[key].elem)[0:maxlen], file=filehandle)
|
||||||
|
write('// VkFormat', file=filehandle)
|
||||||
|
for key in self.formatsdict:
|
||||||
|
write(' VkFormat', key, '->',
|
||||||
|
etree.tostring(self.formatsdict[key].elem)[0:maxlen], file=filehandle)
|
||||||
|
|
||||||
def markTypeRequired(self, typename, required):
|
def markTypeRequired(self, typename, required):
|
||||||
"""Require (along with its dependencies) or remove (but not its dependencies) a type.
|
"""Require (along with its dependencies) or remove (but not its dependencies) a type.
|
||||||
|
|
@ -1216,6 +1233,19 @@ class Registry:
|
||||||
if stripped:
|
if stripped:
|
||||||
eleminfo.elem.set(attribute, ','.join(apis))
|
eleminfo.elem.set(attribute, ','.join(apis))
|
||||||
|
|
||||||
|
def generateFormat(self, format, dictionary):
|
||||||
|
if format is None:
|
||||||
|
self.gen.logMsg('diag', 'No entry found for format element',
|
||||||
|
'returning!')
|
||||||
|
return
|
||||||
|
|
||||||
|
name = format.elem.get('name')
|
||||||
|
# No known alias for VkFormat elements
|
||||||
|
alias = None
|
||||||
|
if format.emit:
|
||||||
|
genProc = self.gen.genFormat
|
||||||
|
genProc(format, name, alias)
|
||||||
|
|
||||||
def apiGen(self):
|
def apiGen(self):
|
||||||
"""Generate interface for specified versions using the current
|
"""Generate interface for specified versions using the current
|
||||||
generator and generator options"""
|
generator and generator options"""
|
||||||
|
|
@ -1241,6 +1271,7 @@ class Registry:
|
||||||
regRemoveExtensions = re.compile(self.genOpts.removeExtensions)
|
regRemoveExtensions = re.compile(self.genOpts.removeExtensions)
|
||||||
regEmitExtensions = re.compile(self.genOpts.emitExtensions)
|
regEmitExtensions = re.compile(self.genOpts.emitExtensions)
|
||||||
regEmitSpirv = re.compile(self.genOpts.emitSpirv)
|
regEmitSpirv = re.compile(self.genOpts.emitSpirv)
|
||||||
|
regEmitFormats = re.compile(self.genOpts.emitFormats)
|
||||||
|
|
||||||
# Get all matching API feature names & add to list of FeatureInfo
|
# Get all matching API feature names & add to list of FeatureInfo
|
||||||
# Note we used to select on feature version attributes, not names.
|
# Note we used to select on feature version attributes, not names.
|
||||||
|
|
@ -1349,6 +1380,12 @@ class Registry:
|
||||||
si.emit = (regEmitSpirv.match(key) is not None)
|
si.emit = (regEmitSpirv.match(key) is not None)
|
||||||
spirvcaps.append(si)
|
spirvcaps.append(si)
|
||||||
|
|
||||||
|
formats = []
|
||||||
|
for key in self.formatsdict:
|
||||||
|
si = self.formatsdict[key]
|
||||||
|
si.emit = (regEmitFormats.match(key) is not None)
|
||||||
|
formats.append(si)
|
||||||
|
|
||||||
# Sort the features list, if a sort procedure is defined
|
# Sort the features list, if a sort procedure is defined
|
||||||
if self.genOpts.sortProcedure:
|
if self.genOpts.sortProcedure:
|
||||||
self.genOpts.sortProcedure(features)
|
self.genOpts.sortProcedure(features)
|
||||||
|
|
@ -1407,6 +1444,8 @@ class Registry:
|
||||||
self.generateSpirv(s, self.spirvextdict)
|
self.generateSpirv(s, self.spirvextdict)
|
||||||
for s in spirvcaps:
|
for s in spirvcaps:
|
||||||
self.generateSpirv(s, self.spirvcapdict)
|
self.generateSpirv(s, self.spirvcapdict)
|
||||||
|
for s in formats:
|
||||||
|
self.generateFormat(s, self.formatsdict)
|
||||||
self.gen.endFile()
|
self.gen.endFile()
|
||||||
|
|
||||||
def apiReset(self):
|
def apiReset(self):
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
1451
registry/vk.xml
1451
registry/vk.xml
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue