mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Update to VK_HEADER_VERSION 175.
This commit is contained in:
parent
d3f6aebe7c
commit
af54ea22a8
@ -83,7 +83,7 @@ namespace vk
|
||||
std::ostream & operator<<( std::ostream & os, LUID const & uuid )
|
||||
{
|
||||
os << std::setfill( '0' ) << std::hex;
|
||||
for ( int j = 0; j < VK_LUID_SIZE; ++j )
|
||||
for ( uint32_t j = 0; j < VK_LUID_SIZE; ++j )
|
||||
{
|
||||
os << std::setw( 2 ) << static_cast<uint32_t>( uuid.m_data[j] );
|
||||
if ( j == 3 || j == 5 )
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit e1d8c4931d8e4b6c4a8e633c163ed3aa82d6ac1c
|
||||
Subproject commit e01b00657664ac34389d51b04c58dff3eb19a026
|
@ -158,7 +158,7 @@ void check( bool condition, int line, std::string const & message )
|
||||
{
|
||||
if ( !condition )
|
||||
{
|
||||
throw std::runtime_error( "Spec error on line " + std::to_string( line ) + ": " + message );
|
||||
throw std::runtime_error( "VulkanHppGenerator: Spec error on line " + std::to_string( line ) + ": " + message );
|
||||
}
|
||||
}
|
||||
|
||||
@ -781,7 +781,8 @@ void warn( bool condition, int line, std::string const & message )
|
||||
{
|
||||
if ( !condition )
|
||||
{
|
||||
std::cerr << "Spec warning on line " << std::to_string( line ) << ": " << message << "!" << std::endl;
|
||||
std::cerr << "VulkanHppGenerator: Spec warning on line " << std::to_string( line ) << ": " << message << "!"
|
||||
<< std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2202,13 +2203,19 @@ void VulkanHppGenerator::appendDispatchLoaderDynamic( std::string & str )
|
||||
str += R"( }
|
||||
|
||||
// This interface does not require a linked vulkan library.
|
||||
DispatchLoaderDynamic( VkInstance instance, PFN_vkGetInstanceProcAddr getInstanceProcAddr, VkDevice device = VK_NULL_HANDLE, PFN_vkGetDeviceProcAddr getDeviceProcAddr = nullptr ) VULKAN_HPP_NOEXCEPT
|
||||
DispatchLoaderDynamic( VkInstance instance,
|
||||
PFN_vkGetInstanceProcAddr getInstanceProcAddr,
|
||||
VkDevice device = {},
|
||||
PFN_vkGetDeviceProcAddr getDeviceProcAddr = nullptr ) VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
init( instance, getInstanceProcAddr, device, getDeviceProcAddr );
|
||||
}
|
||||
|
||||
// This interface does not require a linked vulkan library.
|
||||
void init( VkInstance instance, PFN_vkGetInstanceProcAddr getInstanceProcAddr, VkDevice device = VK_NULL_HANDLE, PFN_vkGetDeviceProcAddr /*getDeviceProcAddr*/ = nullptr ) VULKAN_HPP_NOEXCEPT
|
||||
void init( VkInstance instance,
|
||||
PFN_vkGetInstanceProcAddr getInstanceProcAddr,
|
||||
VkDevice device = {},
|
||||
PFN_vkGetDeviceProcAddr /*getDeviceProcAddr*/ = nullptr ) VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
VULKAN_HPP_ASSERT(instance && getInstanceProcAddr);
|
||||
vkGetInstanceProcAddr = getInstanceProcAddr;
|
||||
@ -3013,14 +3020,9 @@ ${enter} class ${className}
|
||||
static VULKAN_HPP_CONST_OR_CONSTEXPR VULKAN_HPP_NAMESPACE::DebugReportObjectTypeEXT debugReportObjectType = VULKAN_HPP_NAMESPACE::DebugReportObjectTypeEXT::${debugReportObjectType};
|
||||
|
||||
public:
|
||||
VULKAN_HPP_CONSTEXPR ${className}() VULKAN_HPP_NOEXCEPT
|
||||
: m_${memberName}(VK_NULL_HANDLE)
|
||||
{}
|
||||
|
||||
VULKAN_HPP_CONSTEXPR ${className}() = default;
|
||||
VULKAN_HPP_CONSTEXPR ${className}( std::nullptr_t ) VULKAN_HPP_NOEXCEPT
|
||||
: m_${memberName}(VK_NULL_HANDLE)
|
||||
{}
|
||||
|
||||
VULKAN_HPP_TYPESAFE_EXPLICIT ${className}( Vk${className} ${memberName} ) VULKAN_HPP_NOEXCEPT
|
||||
: m_${memberName}( ${memberName} )
|
||||
{}
|
||||
@ -3035,7 +3037,7 @@ ${enter} class ${className}
|
||||
|
||||
${className} & operator=( std::nullptr_t ) VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
m_${memberName} = VK_NULL_HANDLE;
|
||||
m_${memberName} = {};
|
||||
return *this;
|
||||
}
|
||||
|
||||
@ -3074,7 +3076,7 @@ ${commands}
|
||||
}
|
||||
|
||||
private:
|
||||
Vk${className} m_${memberName};
|
||||
Vk${className} m_${memberName} = {};
|
||||
};
|
||||
static_assert( sizeof( VULKAN_HPP_NAMESPACE::${className} ) == sizeof( Vk${className} ), "handle and wrapper have different size!" );
|
||||
|
||||
@ -13782,6 +13784,7 @@ void VulkanHppGenerator::readStructMember( tinyxml2::XMLElement const * element,
|
||||
{ { "altlen", {} },
|
||||
{ "externsync", { "true" } },
|
||||
{ "len", {} },
|
||||
{ "limittype", { "bitmask", "max", "min", "noauto", "range", "struct" } },
|
||||
{ "noautovalidity", { "true" } },
|
||||
{ "optional", { "false", "true" } },
|
||||
{ "selection", {} },
|
||||
|
@ -83,7 +83,7 @@ namespace vk
|
||||
std::ostream & operator<<( std::ostream & os, LUID const & uuid )
|
||||
{
|
||||
os << std::setfill( '0' ) << std::hex;
|
||||
for ( int j = 0; j < VK_LUID_SIZE; ++j )
|
||||
for ( uint32_t j = 0; j < VK_LUID_SIZE; ++j )
|
||||
{
|
||||
os << std::setw( 2 ) << static_cast<uint32_t>( uuid.m_data[j] );
|
||||
if ( j == 3 || j == 5 )
|
||||
|
@ -1195,7 +1195,7 @@ namespace vk
|
||||
std::ostream & operator<<( std::ostream & os, vk::su::UUID const & uuid )
|
||||
{
|
||||
os << std::setfill( '0' ) << std::hex;
|
||||
for ( int j = 0; j < VK_UUID_SIZE; ++j )
|
||||
for ( uint32_t j = 0; j < VK_UUID_SIZE; ++j )
|
||||
{
|
||||
os << std::setw( 2 ) << static_cast<uint32_t>( uuid.m_data[j] );
|
||||
if ( j == 3 || j == 5 || j == 7 || j == 9 )
|
||||
|
10552
vulkan/vulkan.hpp
10552
vulkan/vulkan.hpp
File diff suppressed because it is too large
Load Diff
@ -411,6 +411,22 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::PhysicalDeviceToolPropertiesEXT>
|
||||
getToolPropertiesEXT() const;
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_NAMESPACE::VideoCapabilitiesKHR
|
||||
getVideoCapabilitiesKHR( const VideoProfileKHR & videoProfile ) const;
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
template <typename X, typename Y, typename... Z>
|
||||
VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...>
|
||||
getVideoCapabilitiesKHR( const VideoProfileKHR & videoProfile ) const;
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::VideoFormatPropertiesKHR>
|
||||
getVideoFormatPropertiesKHR( const PhysicalDeviceVideoFormatInfoKHR & videoFormatInfo ) const;
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
# if defined( VK_USE_PLATFORM_WAYLAND_KHR )
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_NAMESPACE::Bool32
|
||||
getWaylandPresentationSupportKHR( uint32_t queueFamilyIndex,
|
||||
@ -1402,6 +1418,10 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
VULKAN_HPP_DEFAULT_ARGUMENT_NULLPTR_ASSIGNMENT ) const
|
||||
VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
void beginVideoCodingKHR( const VideoBeginCodingInfoKHR & beginInfo ) const VULKAN_HPP_NOEXCEPT;
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
void bindDescriptorSets( VULKAN_HPP_NAMESPACE::PipelineBindPoint pipelineBindPoint,
|
||||
VULKAN_HPP_NAMESPACE::PipelineLayout layout,
|
||||
uint32_t firstSet,
|
||||
@ -1487,6 +1507,10 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
ArrayProxy<const VULKAN_HPP_NAMESPACE::ImageSubresourceRange> const & ranges ) const
|
||||
VULKAN_HPP_NOEXCEPT;
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
void controlVideoCodingKHR( const VideoCodingControlInfoKHR & codingControlInfo ) const VULKAN_HPP_NOEXCEPT;
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
void copyAccelerationStructureKHR( const CopyAccelerationStructureInfoKHR & info ) const VULKAN_HPP_NOEXCEPT;
|
||||
|
||||
void copyAccelerationStructureNV( VULKAN_HPP_NAMESPACE::AccelerationStructureNV dst,
|
||||
@ -1545,6 +1569,10 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
|
||||
void debugMarkerInsertEXT( const DebugMarkerMarkerInfoEXT & markerInfo ) const VULKAN_HPP_NOEXCEPT;
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
void decodeVideoKHR( const VideoDecodeInfoKHR & frameInfo ) const VULKAN_HPP_NOEXCEPT;
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
void dispatch( uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ ) const VULKAN_HPP_NOEXCEPT;
|
||||
|
||||
void dispatchBase( uint32_t baseGroupX,
|
||||
@ -1613,6 +1641,10 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
|
||||
void drawMeshTasksNV( uint32_t taskCount, uint32_t firstTask ) const VULKAN_HPP_NOEXCEPT;
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
void encodeVideoKHR( const VideoEncodeInfoKHR & encodeInfo ) const VULKAN_HPP_NOEXCEPT;
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
void endConditionalRenderingEXT() const VULKAN_HPP_NOEXCEPT;
|
||||
|
||||
void endDebugUtilsLabelEXT() const VULKAN_HPP_NOEXCEPT;
|
||||
@ -1633,6 +1665,10 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
VULKAN_HPP_DEFAULT_ARGUMENT_NULLPTR_ASSIGNMENT ) const
|
||||
VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
void endVideoCodingKHR( const VideoEndCodingInfoKHR & endCodingInfo ) const VULKAN_HPP_NOEXCEPT;
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
void executeCommands( ArrayProxy<const VULKAN_HPP_NAMESPACE::CommandBuffer> const & commandBuffers ) const
|
||||
VULKAN_HPP_NOEXCEPT;
|
||||
|
||||
@ -1709,6 +1745,9 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
ArrayProxy<const VULKAN_HPP_NAMESPACE::CoarseSampleOrderCustomNV> const &
|
||||
customSampleOrders ) const VULKAN_HPP_NOEXCEPT;
|
||||
|
||||
void setColorWriteEnableEXT( ArrayProxy<const VULKAN_HPP_NAMESPACE::Bool32> const & colorWriteEnables ) const
|
||||
VULKAN_HPP_NOEXCEPT;
|
||||
|
||||
void setCullModeEXT( VULKAN_HPP_NAMESPACE::CullModeFlags cullMode VULKAN_HPP_DEFAULT_ARGUMENT_ASSIGNMENT ) const
|
||||
VULKAN_HPP_NOEXCEPT;
|
||||
|
||||
@ -1792,6 +1831,11 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
void setStencilWriteMask( VULKAN_HPP_NAMESPACE::StencilFaceFlags faceMask,
|
||||
uint32_t writeMask ) const VULKAN_HPP_NOEXCEPT;
|
||||
|
||||
void setVertexInputEXT(
|
||||
ArrayProxy<const VULKAN_HPP_NAMESPACE::VertexInputBindingDescription2EXT> const & vertexBindingDescriptions,
|
||||
ArrayProxy<const VULKAN_HPP_NAMESPACE::VertexInputAttributeDescription2EXT> const &
|
||||
vertexAttributeDescriptions ) const VULKAN_HPP_NOEXCEPT;
|
||||
|
||||
void setViewport( uint32_t firstViewport,
|
||||
ArrayProxy<const VULKAN_HPP_NAMESPACE::Viewport> const & viewports ) const VULKAN_HPP_NOEXCEPT;
|
||||
|
||||
@ -5617,6 +5661,210 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
VULKAN_HPP_RAII_DISPATCHER_TYPE const * m_dispatcher;
|
||||
};
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
class VideoSessionKHR
|
||||
{
|
||||
public:
|
||||
using CType = VkVideoSessionKHR;
|
||||
|
||||
static VULKAN_HPP_CONST_OR_CONSTEXPR VULKAN_HPP_NAMESPACE::ObjectType objectType =
|
||||
VULKAN_HPP_NAMESPACE::ObjectType::eVideoSessionKHR;
|
||||
static VULKAN_HPP_CONST_OR_CONSTEXPR VULKAN_HPP_NAMESPACE::DebugReportObjectTypeEXT debugReportObjectType =
|
||||
VULKAN_HPP_NAMESPACE::DebugReportObjectTypeEXT::eUnknown;
|
||||
|
||||
public:
|
||||
VideoSessionKHR(
|
||||
VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::Device const & device,
|
||||
VULKAN_HPP_NAMESPACE::VideoSessionCreateInfoKHR const & createInfo,
|
||||
VULKAN_HPP_NAMESPACE::Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator = nullptr )
|
||||
: m_device( *device )
|
||||
, m_allocator( reinterpret_cast<const VkAllocationCallbacks *>(
|
||||
static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ) )
|
||||
, m_dispatcher( device.getDispatcher() )
|
||||
{
|
||||
VULKAN_HPP_NAMESPACE::Result result =
|
||||
static_cast<VULKAN_HPP_NAMESPACE::Result>( getDispatcher()->vkCreateVideoSessionKHR(
|
||||
static_cast<VkDevice>( *device ),
|
||||
reinterpret_cast<const VkVideoSessionCreateInfoKHR *>( &createInfo ),
|
||||
m_allocator,
|
||||
reinterpret_cast<VkVideoSessionKHR *>( &m_videoSessionKHR ) ) );
|
||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||
{
|
||||
throwResultException( result, "vkCreateVideoSessionKHR" );
|
||||
}
|
||||
}
|
||||
|
||||
VideoSessionKHR(
|
||||
VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::Device const & device,
|
||||
VkVideoSessionKHR videoSessionKHR,
|
||||
VULKAN_HPP_NAMESPACE::Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator = nullptr )
|
||||
: m_videoSessionKHR( videoSessionKHR )
|
||||
, m_device( *device )
|
||||
, m_allocator( reinterpret_cast<const VkAllocationCallbacks *>(
|
||||
static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ) )
|
||||
, m_dispatcher( device.getDispatcher() )
|
||||
{}
|
||||
|
||||
~VideoSessionKHR()
|
||||
{
|
||||
if ( m_videoSessionKHR )
|
||||
{
|
||||
getDispatcher()->vkDestroyVideoSessionKHR(
|
||||
m_device, static_cast<VkVideoSessionKHR>( m_videoSessionKHR ), m_allocator );
|
||||
}
|
||||
}
|
||||
|
||||
VideoSessionKHR() = delete;
|
||||
VideoSessionKHR( VideoSessionKHR const & ) = delete;
|
||||
VideoSessionKHR( VideoSessionKHR && rhs )
|
||||
: m_videoSessionKHR( VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::exchange( rhs.m_videoSessionKHR, {} ) )
|
||||
, m_device( rhs.m_device )
|
||||
, m_allocator( rhs.m_allocator )
|
||||
, m_dispatcher( rhs.m_dispatcher )
|
||||
{}
|
||||
VideoSessionKHR & operator=( VideoSessionKHR const & ) = delete;
|
||||
VideoSessionKHR & operator =( VideoSessionKHR && rhs )
|
||||
{
|
||||
if ( this != &rhs )
|
||||
{
|
||||
getDispatcher()->vkDestroyVideoSessionKHR(
|
||||
m_device, static_cast<VkVideoSessionKHR>( m_videoSessionKHR ), m_allocator );
|
||||
m_videoSessionKHR = VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::exchange( rhs.m_videoSessionKHR, {} );
|
||||
m_device = rhs.m_device;
|
||||
m_allocator = rhs.m_allocator;
|
||||
m_dispatcher = rhs.m_dispatcher;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
void
|
||||
bindMemory( ArrayProxy<const VULKAN_HPP_NAMESPACE::VideoBindMemoryKHR> const & videoSessionBindMemories ) const;
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::VideoGetMemoryPropertiesKHR> getMemoryRequirements() const;
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
VULKAN_HPP_NAMESPACE::VideoSessionKHR const & operator*() const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
return m_videoSessionKHR;
|
||||
}
|
||||
|
||||
VULKAN_HPP_RAII_DISPATCHER_TYPE const * getDispatcher() const
|
||||
{
|
||||
return m_dispatcher;
|
||||
}
|
||||
|
||||
private:
|
||||
VULKAN_HPP_NAMESPACE::VideoSessionKHR m_videoSessionKHR;
|
||||
VkDevice m_device;
|
||||
const VkAllocationCallbacks * m_allocator;
|
||||
VULKAN_HPP_RAII_DISPATCHER_TYPE const * m_dispatcher;
|
||||
};
|
||||
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
class VideoSessionParametersKHR
|
||||
{
|
||||
public:
|
||||
using CType = VkVideoSessionParametersKHR;
|
||||
|
||||
static VULKAN_HPP_CONST_OR_CONSTEXPR VULKAN_HPP_NAMESPACE::ObjectType objectType =
|
||||
VULKAN_HPP_NAMESPACE::ObjectType::eVideoSessionParametersKHR;
|
||||
static VULKAN_HPP_CONST_OR_CONSTEXPR VULKAN_HPP_NAMESPACE::DebugReportObjectTypeEXT debugReportObjectType =
|
||||
VULKAN_HPP_NAMESPACE::DebugReportObjectTypeEXT::eUnknown;
|
||||
|
||||
public:
|
||||
VideoSessionParametersKHR(
|
||||
VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::Device const & device,
|
||||
VULKAN_HPP_NAMESPACE::VideoSessionParametersCreateInfoKHR const & createInfo,
|
||||
VULKAN_HPP_NAMESPACE::Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator = nullptr )
|
||||
: m_device( *device )
|
||||
, m_allocator( reinterpret_cast<const VkAllocationCallbacks *>(
|
||||
static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ) )
|
||||
, m_dispatcher( device.getDispatcher() )
|
||||
{
|
||||
VULKAN_HPP_NAMESPACE::Result result =
|
||||
static_cast<VULKAN_HPP_NAMESPACE::Result>( getDispatcher()->vkCreateVideoSessionParametersKHR(
|
||||
static_cast<VkDevice>( *device ),
|
||||
reinterpret_cast<const VkVideoSessionParametersCreateInfoKHR *>( &createInfo ),
|
||||
m_allocator,
|
||||
reinterpret_cast<VkVideoSessionParametersKHR *>( &m_videoSessionParametersKHR ) ) );
|
||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||
{
|
||||
throwResultException( result, "vkCreateVideoSessionParametersKHR" );
|
||||
}
|
||||
}
|
||||
|
||||
VideoSessionParametersKHR(
|
||||
VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::Device const & device,
|
||||
VkVideoSessionParametersKHR videoSessionParametersKHR,
|
||||
VULKAN_HPP_NAMESPACE::Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator = nullptr )
|
||||
: m_videoSessionParametersKHR( videoSessionParametersKHR )
|
||||
, m_device( *device )
|
||||
, m_allocator( reinterpret_cast<const VkAllocationCallbacks *>(
|
||||
static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ) )
|
||||
, m_dispatcher( device.getDispatcher() )
|
||||
{}
|
||||
|
||||
~VideoSessionParametersKHR()
|
||||
{
|
||||
if ( m_videoSessionParametersKHR )
|
||||
{
|
||||
getDispatcher()->vkDestroyVideoSessionParametersKHR(
|
||||
m_device, static_cast<VkVideoSessionParametersKHR>( m_videoSessionParametersKHR ), m_allocator );
|
||||
}
|
||||
}
|
||||
|
||||
VideoSessionParametersKHR() = delete;
|
||||
VideoSessionParametersKHR( VideoSessionParametersKHR const & ) = delete;
|
||||
VideoSessionParametersKHR( VideoSessionParametersKHR && rhs )
|
||||
: m_videoSessionParametersKHR(
|
||||
VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::exchange( rhs.m_videoSessionParametersKHR, {} ) )
|
||||
, m_device( rhs.m_device )
|
||||
, m_allocator( rhs.m_allocator )
|
||||
, m_dispatcher( rhs.m_dispatcher )
|
||||
{}
|
||||
VideoSessionParametersKHR & operator=( VideoSessionParametersKHR const & ) = delete;
|
||||
VideoSessionParametersKHR & operator =( VideoSessionParametersKHR && rhs )
|
||||
{
|
||||
if ( this != &rhs )
|
||||
{
|
||||
getDispatcher()->vkDestroyVideoSessionParametersKHR(
|
||||
m_device, static_cast<VkVideoSessionParametersKHR>( m_videoSessionParametersKHR ), m_allocator );
|
||||
m_videoSessionParametersKHR =
|
||||
VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::exchange( rhs.m_videoSessionParametersKHR, {} );
|
||||
m_device = rhs.m_device;
|
||||
m_allocator = rhs.m_allocator;
|
||||
m_dispatcher = rhs.m_dispatcher;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
void update( const VideoSessionParametersUpdateInfoKHR & updateInfo ) const;
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
VULKAN_HPP_NAMESPACE::VideoSessionParametersKHR const & operator*() const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
return m_videoSessionParametersKHR;
|
||||
}
|
||||
|
||||
VULKAN_HPP_RAII_DISPATCHER_TYPE const * getDispatcher() const
|
||||
{
|
||||
return m_dispatcher;
|
||||
}
|
||||
|
||||
private:
|
||||
VULKAN_HPP_NAMESPACE::VideoSessionParametersKHR m_videoSessionParametersKHR;
|
||||
VkDevice m_device;
|
||||
const VkAllocationCallbacks * m_allocator;
|
||||
VULKAN_HPP_RAII_DISPATCHER_TYPE const * m_dispatcher;
|
||||
};
|
||||
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<VULKAN_HPP_NAMESPACE::ExtensionProperties>
|
||||
Context::enumerateInstanceExtensionProperties( Optional<const std::string> layerName ) const
|
||||
{
|
||||
@ -6961,6 +7209,93 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
return toolProperties;
|
||||
}
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE VULKAN_HPP_NAMESPACE::VideoCapabilitiesKHR
|
||||
PhysicalDevice::getVideoCapabilitiesKHR( const VideoProfileKHR & videoProfile ) const
|
||||
{
|
||||
VULKAN_HPP_ASSERT(
|
||||
getDispatcher()->vkGetPhysicalDeviceVideoCapabilitiesKHR &&
|
||||
"Function <vkGetPhysicalDeviceVideoCapabilitiesKHR> needs extension <VK_KHR_video_queue> enabled!" );
|
||||
|
||||
VULKAN_HPP_NAMESPACE::VideoCapabilitiesKHR capabilities;
|
||||
VULKAN_HPP_NAMESPACE::Result result =
|
||||
static_cast<VULKAN_HPP_NAMESPACE::Result>( getDispatcher()->vkGetPhysicalDeviceVideoCapabilitiesKHR(
|
||||
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
||||
reinterpret_cast<const VkVideoProfileKHR *>( &videoProfile ),
|
||||
reinterpret_cast<VkVideoCapabilitiesKHR *>( &capabilities ) ) );
|
||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||
{
|
||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoCapabilitiesKHR" );
|
||||
}
|
||||
return capabilities;
|
||||
}
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
template <typename X, typename Y, typename... Z>
|
||||
VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...>
|
||||
PhysicalDevice::getVideoCapabilitiesKHR( const VideoProfileKHR & videoProfile ) const
|
||||
{
|
||||
StructureChain<X, Y, Z...> structureChain;
|
||||
VULKAN_HPP_NAMESPACE::VideoCapabilitiesKHR & capabilities =
|
||||
structureChain.template get<VULKAN_HPP_NAMESPACE::VideoCapabilitiesKHR>();
|
||||
VULKAN_HPP_NAMESPACE::Result result =
|
||||
static_cast<VULKAN_HPP_NAMESPACE::Result>( getDispatcher()->vkGetPhysicalDeviceVideoCapabilitiesKHR(
|
||||
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
||||
reinterpret_cast<const VkVideoProfileKHR *>( &videoProfile ),
|
||||
reinterpret_cast<VkVideoCapabilitiesKHR *>( &capabilities ) ) );
|
||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||
{
|
||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoCapabilitiesKHR" );
|
||||
}
|
||||
return structureChain;
|
||||
}
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<VULKAN_HPP_NAMESPACE::VideoFormatPropertiesKHR>
|
||||
PhysicalDevice::getVideoFormatPropertiesKHR( const PhysicalDeviceVideoFormatInfoKHR & videoFormatInfo ) const
|
||||
{
|
||||
VULKAN_HPP_ASSERT(
|
||||
getDispatcher()->vkGetPhysicalDeviceVideoFormatPropertiesKHR &&
|
||||
"Function <vkGetPhysicalDeviceVideoFormatPropertiesKHR> needs extension <VK_KHR_video_queue> enabled!" );
|
||||
|
||||
std::vector<VULKAN_HPP_NAMESPACE::VideoFormatPropertiesKHR> videoFormatProperties;
|
||||
uint32_t videoFormatPropertyCount;
|
||||
VULKAN_HPP_NAMESPACE::Result result;
|
||||
do
|
||||
{
|
||||
result =
|
||||
static_cast<VULKAN_HPP_NAMESPACE::Result>( getDispatcher()->vkGetPhysicalDeviceVideoFormatPropertiesKHR(
|
||||
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
||||
reinterpret_cast<const VkPhysicalDeviceVideoFormatInfoKHR *>( &videoFormatInfo ),
|
||||
&videoFormatPropertyCount,
|
||||
nullptr ) );
|
||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && videoFormatPropertyCount )
|
||||
{
|
||||
videoFormatProperties.resize( videoFormatPropertyCount );
|
||||
result =
|
||||
static_cast<VULKAN_HPP_NAMESPACE::Result>( getDispatcher()->vkGetPhysicalDeviceVideoFormatPropertiesKHR(
|
||||
static_cast<VkPhysicalDevice>( m_physicalDevice ),
|
||||
reinterpret_cast<const VkPhysicalDeviceVideoFormatInfoKHR *>( &videoFormatInfo ),
|
||||
&videoFormatPropertyCount,
|
||||
reinterpret_cast<VkVideoFormatPropertiesKHR *>( videoFormatProperties.data() ) ) );
|
||||
VULKAN_HPP_ASSERT( videoFormatPropertyCount <= videoFormatProperties.size() );
|
||||
}
|
||||
} 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 )
|
||||
{
|
||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoFormatPropertiesKHR" );
|
||||
}
|
||||
return videoFormatProperties;
|
||||
}
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
# if defined( VK_USE_PLATFORM_WAYLAND_KHR )
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE VULKAN_HPP_NAMESPACE::Bool32
|
||||
PhysicalDevice::getWaylandPresentationSupportKHR( uint32_t queueFamilyIndex,
|
||||
@ -8598,6 +8933,18 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
reinterpret_cast<const VkDeviceSize *>( counterBufferOffsets.data() ) );
|
||||
}
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
VULKAN_HPP_INLINE void
|
||||
CommandBuffer::beginVideoCodingKHR( const VideoBeginCodingInfoKHR & beginInfo ) const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBeginVideoCodingKHR &&
|
||||
"Function <vkCmdBeginVideoCodingKHR> needs extension <VK_KHR_video_queue> enabled!" );
|
||||
|
||||
getDispatcher()->vkCmdBeginVideoCodingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
|
||||
reinterpret_cast<const VkVideoBeginCodingInfoKHR *>( &beginInfo ) );
|
||||
}
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
VULKAN_HPP_INLINE void
|
||||
CommandBuffer::bindDescriptorSets( VULKAN_HPP_NAMESPACE::PipelineBindPoint pipelineBindPoint,
|
||||
VULKAN_HPP_NAMESPACE::PipelineLayout layout,
|
||||
@ -8922,6 +9269,19 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
reinterpret_cast<const VkImageSubresourceRange *>( ranges.data() ) );
|
||||
}
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
VULKAN_HPP_INLINE void CommandBuffer::controlVideoCodingKHR(
|
||||
const VideoCodingControlInfoKHR & codingControlInfo ) const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
VULKAN_HPP_ASSERT( getDispatcher()->vkCmdControlVideoCodingKHR &&
|
||||
"Function <vkCmdControlVideoCodingKHR> needs extension <VK_KHR_video_queue> enabled!" );
|
||||
|
||||
getDispatcher()->vkCmdControlVideoCodingKHR(
|
||||
static_cast<VkCommandBuffer>( m_commandBuffer ),
|
||||
reinterpret_cast<const VkVideoCodingControlInfoKHR *>( &codingControlInfo ) );
|
||||
}
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
VULKAN_HPP_INLINE void CommandBuffer::copyAccelerationStructureKHR(
|
||||
const CopyAccelerationStructureInfoKHR & info ) const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
@ -9117,6 +9477,18 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
reinterpret_cast<const VkDebugMarkerMarkerInfoEXT *>( &markerInfo ) );
|
||||
}
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
VULKAN_HPP_INLINE void
|
||||
CommandBuffer::decodeVideoKHR( const VideoDecodeInfoKHR & frameInfo ) const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDecodeVideoKHR &&
|
||||
"Function <vkCmdDecodeVideoKHR> needs extension <VK_KHR_video_decode_queue> enabled!" );
|
||||
|
||||
getDispatcher()->vkCmdDecodeVideoKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
|
||||
reinterpret_cast<const VkVideoDecodeInfoKHR *>( &frameInfo ) );
|
||||
}
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
VULKAN_HPP_INLINE void CommandBuffer::dispatch( uint32_t groupCountX,
|
||||
uint32_t groupCountY,
|
||||
uint32_t groupCountZ ) const VULKAN_HPP_NOEXCEPT
|
||||
@ -9294,6 +9666,18 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
getDispatcher()->vkCmdDrawMeshTasksNV( static_cast<VkCommandBuffer>( m_commandBuffer ), taskCount, firstTask );
|
||||
}
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
VULKAN_HPP_INLINE void
|
||||
CommandBuffer::encodeVideoKHR( const VideoEncodeInfoKHR & encodeInfo ) const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEncodeVideoKHR &&
|
||||
"Function <vkCmdEncodeVideoKHR> needs extension <VK_KHR_video_encode_queue> enabled!" );
|
||||
|
||||
getDispatcher()->vkCmdEncodeVideoKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
|
||||
reinterpret_cast<const VkVideoEncodeInfoKHR *>( &encodeInfo ) );
|
||||
}
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
VULKAN_HPP_INLINE void CommandBuffer::endConditionalRenderingEXT() const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
VULKAN_HPP_ASSERT(
|
||||
@ -9370,6 +9754,18 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
reinterpret_cast<const VkDeviceSize *>( counterBufferOffsets.data() ) );
|
||||
}
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
VULKAN_HPP_INLINE void
|
||||
CommandBuffer::endVideoCodingKHR( const VideoEndCodingInfoKHR & endCodingInfo ) const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEndVideoCodingKHR &&
|
||||
"Function <vkCmdEndVideoCodingKHR> needs extension <VK_KHR_video_queue> enabled!" );
|
||||
|
||||
getDispatcher()->vkCmdEndVideoCodingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
|
||||
reinterpret_cast<const VkVideoEndCodingInfoKHR *>( &endCodingInfo ) );
|
||||
}
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
VULKAN_HPP_INLINE void CommandBuffer::executeCommands(
|
||||
ArrayProxy<const VULKAN_HPP_NAMESPACE::CommandBuffer> const & commandBuffers ) const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
@ -9609,6 +10005,18 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
reinterpret_cast<const VkCoarseSampleOrderCustomNV *>( customSampleOrders.data() ) );
|
||||
}
|
||||
|
||||
VULKAN_HPP_INLINE void CommandBuffer::setColorWriteEnableEXT(
|
||||
ArrayProxy<const VULKAN_HPP_NAMESPACE::Bool32> const & colorWriteEnables ) const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
VULKAN_HPP_ASSERT(
|
||||
getDispatcher()->vkCmdSetColorWriteEnableEXT &&
|
||||
"Function <vkCmdSetColorWriteEnableEXT> needs extension <VK_EXT_color_write_enable> enabled!" );
|
||||
|
||||
getDispatcher()->vkCmdSetColorWriteEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
|
||||
colorWriteEnables.size(),
|
||||
reinterpret_cast<const VkBool32 *>( colorWriteEnables.data() ) );
|
||||
}
|
||||
|
||||
VULKAN_HPP_INLINE void
|
||||
CommandBuffer::setCullModeEXT( VULKAN_HPP_NAMESPACE::CullModeFlags cullMode ) const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
@ -9941,6 +10349,23 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkStencilFaceFlags>( faceMask ), writeMask );
|
||||
}
|
||||
|
||||
VULKAN_HPP_INLINE void CommandBuffer::setVertexInputEXT(
|
||||
ArrayProxy<const VULKAN_HPP_NAMESPACE::VertexInputBindingDescription2EXT> const & vertexBindingDescriptions,
|
||||
ArrayProxy<const VULKAN_HPP_NAMESPACE::VertexInputAttributeDescription2EXT> const & vertexAttributeDescriptions )
|
||||
const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
VULKAN_HPP_ASSERT(
|
||||
getDispatcher()->vkCmdSetVertexInputEXT &&
|
||||
"Function <vkCmdSetVertexInputEXT> needs extension <VK_EXT_vertex_input_dynamic_state> enabled!" );
|
||||
|
||||
getDispatcher()->vkCmdSetVertexInputEXT(
|
||||
static_cast<VkCommandBuffer>( m_commandBuffer ),
|
||||
vertexBindingDescriptions.size(),
|
||||
reinterpret_cast<const VkVertexInputBindingDescription2EXT *>( vertexBindingDescriptions.data() ),
|
||||
vertexAttributeDescriptions.size(),
|
||||
reinterpret_cast<const VkVertexInputAttributeDescription2EXT *>( vertexAttributeDescriptions.data() ) );
|
||||
}
|
||||
|
||||
VULKAN_HPP_INLINE void CommandBuffer::setViewport(
|
||||
uint32_t firstViewport,
|
||||
ArrayProxy<const VULKAN_HPP_NAMESPACE::Viewport> const & viewports ) const VULKAN_HPP_NOEXCEPT
|
||||
@ -11297,6 +11722,87 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
}
|
||||
}
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
VULKAN_HPP_INLINE void VideoSessionKHR::bindMemory(
|
||||
ArrayProxy<const VULKAN_HPP_NAMESPACE::VideoBindMemoryKHR> const & videoSessionBindMemories ) const
|
||||
{
|
||||
VULKAN_HPP_ASSERT( getDispatcher()->vkBindVideoSessionMemoryKHR &&
|
||||
"Function <vkBindVideoSessionMemoryKHR> needs extension <VK_KHR_video_queue> enabled!" );
|
||||
|
||||
VULKAN_HPP_NAMESPACE::Result result =
|
||||
static_cast<VULKAN_HPP_NAMESPACE::Result>( getDispatcher()->vkBindVideoSessionMemoryKHR(
|
||||
static_cast<VkDevice>( m_device ),
|
||||
static_cast<VkVideoSessionKHR>( m_videoSessionKHR ),
|
||||
videoSessionBindMemories.size(),
|
||||
reinterpret_cast<const VkVideoBindMemoryKHR *>( videoSessionBindMemories.data() ) ) );
|
||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||
{
|
||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::VideoSessionKHR::bindMemory" );
|
||||
}
|
||||
}
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<VULKAN_HPP_NAMESPACE::VideoGetMemoryPropertiesKHR>
|
||||
VideoSessionKHR::getMemoryRequirements() const
|
||||
{
|
||||
VULKAN_HPP_ASSERT(
|
||||
getDispatcher()->vkGetVideoSessionMemoryRequirementsKHR &&
|
||||
"Function <vkGetVideoSessionMemoryRequirementsKHR> needs extension <VK_KHR_video_queue> enabled!" );
|
||||
|
||||
std::vector<VULKAN_HPP_NAMESPACE::VideoGetMemoryPropertiesKHR> videoSessionMemoryRequirements;
|
||||
uint32_t videoSessionMemoryRequirementsCount;
|
||||
VULKAN_HPP_NAMESPACE::Result result;
|
||||
do
|
||||
{
|
||||
result = static_cast<VULKAN_HPP_NAMESPACE::Result>(
|
||||
getDispatcher()->vkGetVideoSessionMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
|
||||
static_cast<VkVideoSessionKHR>( m_videoSessionKHR ),
|
||||
&videoSessionMemoryRequirementsCount,
|
||||
nullptr ) );
|
||||
if ( ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) && videoSessionMemoryRequirementsCount )
|
||||
{
|
||||
videoSessionMemoryRequirements.resize( videoSessionMemoryRequirementsCount );
|
||||
result = static_cast<VULKAN_HPP_NAMESPACE::Result>( getDispatcher()->vkGetVideoSessionMemoryRequirementsKHR(
|
||||
static_cast<VkDevice>( m_device ),
|
||||
static_cast<VkVideoSessionKHR>( m_videoSessionKHR ),
|
||||
&videoSessionMemoryRequirementsCount,
|
||||
reinterpret_cast<VkVideoGetMemoryPropertiesKHR *>( videoSessionMemoryRequirements.data() ) ) );
|
||||
VULKAN_HPP_ASSERT( videoSessionMemoryRequirementsCount <= videoSessionMemoryRequirements.size() );
|
||||
}
|
||||
} 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 )
|
||||
{
|
||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::VideoSessionKHR::getMemoryRequirements" );
|
||||
}
|
||||
return videoSessionMemoryRequirements;
|
||||
}
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
# if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||
VULKAN_HPP_INLINE void
|
||||
VideoSessionParametersKHR::update( const VideoSessionParametersUpdateInfoKHR & updateInfo ) const
|
||||
{
|
||||
VULKAN_HPP_ASSERT( getDispatcher()->vkUpdateVideoSessionParametersKHR &&
|
||||
"Function <vkUpdateVideoSessionParametersKHR> needs extension <VK_KHR_video_queue> enabled!" );
|
||||
|
||||
VULKAN_HPP_NAMESPACE::Result result =
|
||||
static_cast<VULKAN_HPP_NAMESPACE::Result>( getDispatcher()->vkUpdateVideoSessionParametersKHR(
|
||||
static_cast<VkDevice>( m_device ),
|
||||
static_cast<VkVideoSessionParametersKHR>( m_videoSessionParametersKHR ),
|
||||
reinterpret_cast<const VkVideoSessionParametersUpdateInfoKHR *>( &updateInfo ) ) );
|
||||
if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||
{
|
||||
throwResultException( result, VULKAN_HPP_NAMESPACE_STRING "::VideoSessionParametersKHR::update" );
|
||||
}
|
||||
}
|
||||
# endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||
|
||||
#endif
|
||||
} // namespace VULKAN_HPP_RAII_NAMESPACE
|
||||
} // namespace VULKAN_HPP_NAMESPACE
|
||||
|
Loading…
Reference in New Issue
Block a user