mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #835 from asuessenbach/objTypeEnum
Fix issue on name construction for objtypeenum attribute
This commit is contained in:
commit
8ba5c6f5c5
@ -2828,7 +2828,7 @@ ${CppTypeFromDebugReportObjectTypeEXT}
|
||||
{ "debugReportObjectType", debugReportObjectType },
|
||||
{ "enter", enter },
|
||||
{ "memberName", startLowerCase( stripPrefix( handleData.first, "Vk" ) ) },
|
||||
{ "objTypeEnum", valueIt->vkValue } } );
|
||||
{ "objTypeEnum", objTypeEnum } } );
|
||||
|
||||
if ( !handleData.second.alias.empty() )
|
||||
{
|
||||
|
@ -5017,6 +5017,35 @@ 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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user