mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2025-09-11 13:01:57 -04:00
Merge pull request #783 from asuessenbach/refactor
Refactor commands that get a handle which has no create or destroy function.
This commit is contained in:
commit
32c994335a
@ -1207,6 +1207,14 @@ void VulkanHppGenerator::appendCommand( std::string & str,
|
|||||||
appendCommandUnique( str, name, commandData, nonConstPointerParamIndices[0], definition );
|
appendCommandUnique( str, name, commandData, nonConstPointerParamIndices[0], definition );
|
||||||
appendedFunction = true;
|
appendedFunction = true;
|
||||||
}
|
}
|
||||||
|
else if ( commandData.returnType == "void" )
|
||||||
|
{
|
||||||
|
// it's a handle type, but without construction and destruction function; it's just get
|
||||||
|
assert( beginsWith( name, "vkGet" ) );
|
||||||
|
appendCommandStandardAndEnhanced(
|
||||||
|
str, name, commandData, definition, vectorParamIndices, nonConstPointerParamIndices );
|
||||||
|
appendedFunction = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if ( isStructureChainAnchor( commandData.params[nonConstPointerParamIndices[0]].type.type ) )
|
else if ( isStructureChainAnchor( commandData.params[nonConstPointerParamIndices[0]].type.type ) )
|
||||||
{
|
{
|
||||||
|
@ -54699,10 +54699,10 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT;
|
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT;
|
||||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||||
template <typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
template <typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
||||||
VULKAN_HPP_NAMESPACE::Queue
|
VULKAN_HPP_NODISCARD VULKAN_HPP_NAMESPACE::Queue
|
||||||
getQueue( uint32_t queueFamilyIndex,
|
getQueue( uint32_t queueFamilyIndex,
|
||||||
uint32_t queueIndex,
|
uint32_t queueIndex,
|
||||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT;
|
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT;
|
||||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||||
|
|
||||||
template <typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
template <typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
||||||
@ -54711,9 +54711,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT;
|
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT;
|
||||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||||
template <typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
template <typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
||||||
VULKAN_HPP_NAMESPACE::Queue
|
VULKAN_HPP_NODISCARD VULKAN_HPP_NAMESPACE::Queue
|
||||||
getQueue2( const DeviceQueueInfo2 & queueInfo,
|
getQueue2( const DeviceQueueInfo2 & queueInfo,
|
||||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT;
|
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT;
|
||||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||||
|
|
||||||
#ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
#ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||||
@ -98864,10 +98864,11 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
{
|
{
|
||||||
d.vkGetDeviceQueue( m_device, queueFamilyIndex, queueIndex, reinterpret_cast<VkQueue *>( pQueue ) );
|
d.vkGetDeviceQueue( m_device, queueFamilyIndex, queueIndex, reinterpret_cast<VkQueue *>( pQueue ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||||
template <typename Dispatch>
|
template <typename Dispatch>
|
||||||
VULKAN_HPP_INLINE VULKAN_HPP_NAMESPACE::Queue
|
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE VULKAN_HPP_NAMESPACE::Queue
|
||||||
Device::getQueue( uint32_t queueFamilyIndex, uint32_t queueIndex, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
|
Device::getQueue( uint32_t queueFamilyIndex, uint32_t queueIndex, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
VULKAN_HPP_NAMESPACE::Queue queue;
|
VULKAN_HPP_NAMESPACE::Queue queue;
|
||||||
d.vkGetDeviceQueue( m_device, queueFamilyIndex, queueIndex, reinterpret_cast<VkQueue *>( &queue ) );
|
d.vkGetDeviceQueue( m_device, queueFamilyIndex, queueIndex, reinterpret_cast<VkQueue *>( &queue ) );
|
||||||
@ -98883,10 +98884,11 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
d.vkGetDeviceQueue2(
|
d.vkGetDeviceQueue2(
|
||||||
m_device, reinterpret_cast<const VkDeviceQueueInfo2 *>( pQueueInfo ), reinterpret_cast<VkQueue *>( pQueue ) );
|
m_device, reinterpret_cast<const VkDeviceQueueInfo2 *>( pQueueInfo ), reinterpret_cast<VkQueue *>( pQueue ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||||
template <typename Dispatch>
|
template <typename Dispatch>
|
||||||
VULKAN_HPP_INLINE VULKAN_HPP_NAMESPACE::Queue Device::getQueue2( const DeviceQueueInfo2 & queueInfo,
|
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE VULKAN_HPP_NAMESPACE::Queue
|
||||||
Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
|
Device::getQueue2( const DeviceQueueInfo2 & queueInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
VULKAN_HPP_NAMESPACE::Queue queue;
|
VULKAN_HPP_NAMESPACE::Queue queue;
|
||||||
d.vkGetDeviceQueue2(
|
d.vkGetDeviceQueue2(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user