Update for Vulkan-Docs 1.2.165
This commit is contained in:
parent
fe9850767d
commit
85470b32ad
4 changed files with 453 additions and 110 deletions
|
|
@ -94,7 +94,7 @@ extern "C" __declspec( dllimport ) FARPROC __stdcall GetProcAddress( HINSTANCE h
|
|||
#endif
|
||||
|
||||
|
||||
static_assert( VK_HEADER_VERSION == 164 , "Wrong VK_HEADER_VERSION!" );
|
||||
static_assert( VK_HEADER_VERSION == 165 , "Wrong VK_HEADER_VERSION!" );
|
||||
|
||||
// 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
|
||||
|
|
@ -3686,36 +3686,6 @@ namespace VULKAN_HPP_NAMESPACE
|
|||
Dispatch const * m_dispatch = nullptr;
|
||||
};
|
||||
|
||||
template <typename OwnerType, typename Dispatch>
|
||||
class ObjectReleaseExt
|
||||
{
|
||||
public:
|
||||
ObjectReleaseExt() = default;
|
||||
|
||||
ObjectReleaseExt( OwnerType owner, Dispatch const & dispatch = VULKAN_HPP_DEFAULT_DISPATCHER ) VULKAN_HPP_NOEXCEPT
|
||||
: m_owner( owner )
|
||||
, m_dispatch( &dispatch )
|
||||
{}
|
||||
|
||||
OwnerType getOwner() const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
return m_owner;
|
||||
}
|
||||
|
||||
protected:
|
||||
template <typename T>
|
||||
void destroy( T t ) VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
VULKAN_HPP_ASSERT( m_owner && m_dispatch );
|
||||
m_owner.releaseExt( t, *m_dispatch );
|
||||
}
|
||||
|
||||
private:
|
||||
OwnerType m_owner = {};
|
||||
Dispatch const * m_dispatch = nullptr;
|
||||
};
|
||||
|
||||
|
||||
template <typename OwnerType, typename PoolType, typename Dispatch>
|
||||
class PoolFree
|
||||
{
|
||||
|
|
@ -15268,11 +15238,11 @@ namespace VULKAN_HPP_NAMESPACE
|
|||
: type( type_ ), flags( flags_ ), mode( mode_ ), srcAccelerationStructure( srcAccelerationStructure_ ), dstAccelerationStructure( dstAccelerationStructure_ ), geometryCount( static_cast<uint32_t>( geometries_.size() ) ), pGeometries( geometries_.data() ), ppGeometries( pGeometries_.data() ), scratchData( scratchData_ )
|
||||
{
|
||||
#ifdef VULKAN_HPP_NO_EXCEPTIONS
|
||||
VULKAN_HPP_ASSERT( geometries_.size() == pGeometries_.size() );
|
||||
VULKAN_HPP_ASSERT( geometries_.empty() || pGeometries_.empty() || ( geometries_.size() == pGeometries_.size() ) );
|
||||
#else
|
||||
if ( geometries_.size() != pGeometries_.size() )
|
||||
if ( !geometries_.empty() && !pGeometries_.empty() && ( geometries_.size() != pGeometries_.size() ) )
|
||||
{
|
||||
throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::AccelerationStructureBuildGeometryInfoKHR::AccelerationStructureBuildGeometryInfoKHR: geometries_.size() != pGeometries_.size()" );
|
||||
throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::AccelerationStructureBuildGeometryInfoKHR::AccelerationStructureBuildGeometryInfoKHR: !geometries_.empty() && !pGeometries_.empty() && ( geometries_.size() != pGeometries_.size() )" );
|
||||
}
|
||||
#endif /*VULKAN_HPP_NO_EXCEPTIONS*/
|
||||
}
|
||||
|
|
@ -29607,6 +29577,12 @@ namespace VULKAN_HPP_NAMESPACE
|
|||
{
|
||||
*this = rhs;
|
||||
}
|
||||
|
||||
#if !defined(VULKAN_HPP_DISABLE_ENHANCED_MODE)
|
||||
DescriptorSetAllocateInfo( VULKAN_HPP_NAMESPACE::DescriptorPool descriptorPool_, VULKAN_HPP_NAMESPACE::ArrayProxyNoTemporaries<const VULKAN_HPP_NAMESPACE::DescriptorSetLayout> const & setLayouts_ )
|
||||
: descriptorPool( descriptorPool_ ), descriptorSetCount( static_cast<uint32_t>( setLayouts_.size() ) ), pSetLayouts( setLayouts_.data() )
|
||||
{}
|
||||
#endif // !defined(VULKAN_HPP_DISABLE_ENHANCED_MODE)
|
||||
#endif // !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS )
|
||||
|
||||
DescriptorSetAllocateInfo & operator=( VkDescriptorSetAllocateInfo const & rhs ) VULKAN_HPP_NOEXCEPT
|
||||
|
|
@ -29645,6 +29621,15 @@ namespace VULKAN_HPP_NAMESPACE
|
|||
return *this;
|
||||
}
|
||||
|
||||
#if !defined(VULKAN_HPP_DISABLE_ENHANCED_MODE)
|
||||
DescriptorSetAllocateInfo & setSetLayouts( VULKAN_HPP_NAMESPACE::ArrayProxyNoTemporaries<const VULKAN_HPP_NAMESPACE::DescriptorSetLayout> const & setLayouts_ ) VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
descriptorSetCount = static_cast<uint32_t>( setLayouts_.size() );
|
||||
pSetLayouts = setLayouts_.data();
|
||||
return *this;
|
||||
}
|
||||
#endif // !defined(VULKAN_HPP_DISABLE_ENHANCED_MODE)
|
||||
|
||||
|
||||
operator VkDescriptorSetAllocateInfo const&() const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
|
|
@ -92171,7 +92156,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||
{
|
||||
VULKAN_HPP_NAMESPACE::DisplayKHR display;
|
||||
Result result = static_cast<Result>( d.vkGetWinrtDisplayNV( m_physicalDevice, deviceRelativeId, reinterpret_cast<VkDisplayKHR *>( &display ) ) );
|
||||
ObjectReleaseExt<PhysicalDevice, Dispatch> deleter( *this, d );
|
||||
ObjectRelease<PhysicalDevice, Dispatch> deleter( *this, d );
|
||||
return createResultValue<VULKAN_HPP_NAMESPACE::DisplayKHR, Dispatch>( result, display, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getWinrtDisplayNVUnique", deleter );
|
||||
}
|
||||
# endif /*VULKAN_HPP_NO_SMART_HANDLE*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue