mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Fix wrong template argument in usage of ObjectDeleter for the create*Unique functions. (#184)
This commit is contained in:
parent
56f418b41c
commit
ecea796604
@ -3189,7 +3189,7 @@ ${i} return createResultValue( result, ${typeVariable}s, "VULKAN_HPP_NAMESPACE:
|
|||||||
{ "command", startUpperCase(commandData.fullName) },
|
{ "command", startUpperCase(commandData.fullName) },
|
||||||
{ "arguments", arguments.str() },
|
{ "arguments", arguments.str() },
|
||||||
{ "Deleter", ddit->second.pool.empty() ? "ObjectDeleter" : "PoolDeleter" },
|
{ "Deleter", ddit->second.pool.empty() ? "ObjectDeleter" : "PoolDeleter" },
|
||||||
{ "DeleterTemplate", ddit->second.pool.empty() ? type : commandData.className + "," + ddit->second.pool },
|
{ "DeleterTemplate", ddit->second.pool.empty() ? commandData.className : commandData.className + "," + ddit->second.pool },
|
||||||
{ "deleterArg", ddit->second.pool.empty() ? "allocator" : "allocateInfo." + startLowerCase(ddit->second.pool) },
|
{ "deleterArg", ddit->second.pool.empty() ? "allocator" : "allocateInfo." + startLowerCase(ddit->second.pool) },
|
||||||
{ "class", commandData.className },
|
{ "class", commandData.className },
|
||||||
{ "function", commandData.reducedName }
|
{ "function", commandData.reducedName }
|
||||||
|
@ -30570,7 +30570,7 @@ public:
|
|||||||
Pipeline* buffer = reinterpret_cast<Pipeline*>( reinterpret_cast<char*>( pipelines.data() ) + createInfos.size() * ( sizeof( UniquePipeline ) - sizeof( Pipeline ) ) );
|
Pipeline* buffer = reinterpret_cast<Pipeline*>( reinterpret_cast<char*>( pipelines.data() ) + createInfos.size() * ( sizeof( UniquePipeline ) - sizeof( Pipeline ) ) );
|
||||||
Result result = static_cast<Result>(d.vkCreateGraphicsPipelines( m_device, static_cast<VkPipelineCache>( pipelineCache ), createInfos.size() , reinterpret_cast<const VkGraphicsPipelineCreateInfo*>( createInfos.data() ), reinterpret_cast<const VkAllocationCallbacks*>( static_cast<const AllocationCallbacks*>( allocator ) ), reinterpret_cast<VkPipeline*>( buffer ) ) );
|
Result result = static_cast<Result>(d.vkCreateGraphicsPipelines( m_device, static_cast<VkPipelineCache>( pipelineCache ), createInfos.size() , reinterpret_cast<const VkGraphicsPipelineCreateInfo*>( createInfos.data() ), reinterpret_cast<const VkAllocationCallbacks*>( static_cast<const AllocationCallbacks*>( allocator ) ), reinterpret_cast<VkPipeline*>( buffer ) ) );
|
||||||
|
|
||||||
ObjectDeleter<Pipeline> deleter( *this, allocator );
|
ObjectDeleter<Device> deleter( *this, allocator );
|
||||||
for ( size_t i=0 ; i<createInfos.size() ; i++ )
|
for ( size_t i=0 ; i<createInfos.size() ; i++ )
|
||||||
{
|
{
|
||||||
pipelines.push_back( UniquePipeline( buffer[i], deleter ) );
|
pipelines.push_back( UniquePipeline( buffer[i], deleter ) );
|
||||||
@ -30620,7 +30620,7 @@ public:
|
|||||||
Pipeline* buffer = reinterpret_cast<Pipeline*>( reinterpret_cast<char*>( pipelines.data() ) + createInfos.size() * ( sizeof( UniquePipeline ) - sizeof( Pipeline ) ) );
|
Pipeline* buffer = reinterpret_cast<Pipeline*>( reinterpret_cast<char*>( pipelines.data() ) + createInfos.size() * ( sizeof( UniquePipeline ) - sizeof( Pipeline ) ) );
|
||||||
Result result = static_cast<Result>(d.vkCreateComputePipelines( m_device, static_cast<VkPipelineCache>( pipelineCache ), createInfos.size() , reinterpret_cast<const VkComputePipelineCreateInfo*>( createInfos.data() ), reinterpret_cast<const VkAllocationCallbacks*>( static_cast<const AllocationCallbacks*>( allocator ) ), reinterpret_cast<VkPipeline*>( buffer ) ) );
|
Result result = static_cast<Result>(d.vkCreateComputePipelines( m_device, static_cast<VkPipelineCache>( pipelineCache ), createInfos.size() , reinterpret_cast<const VkComputePipelineCreateInfo*>( createInfos.data() ), reinterpret_cast<const VkAllocationCallbacks*>( static_cast<const AllocationCallbacks*>( allocator ) ), reinterpret_cast<VkPipeline*>( buffer ) ) );
|
||||||
|
|
||||||
ObjectDeleter<Pipeline> deleter( *this, allocator );
|
ObjectDeleter<Device> deleter( *this, allocator );
|
||||||
for ( size_t i=0 ; i<createInfos.size() ; i++ )
|
for ( size_t i=0 ; i<createInfos.size() ; i++ )
|
||||||
{
|
{
|
||||||
pipelines.push_back( UniquePipeline( buffer[i], deleter ) );
|
pipelines.push_back( UniquePipeline( buffer[i], deleter ) );
|
||||||
@ -31240,7 +31240,7 @@ public:
|
|||||||
SwapchainKHR* buffer = reinterpret_cast<SwapchainKHR*>( reinterpret_cast<char*>( swapchainKHRs.data() ) + createInfos.size() * ( sizeof( UniqueSwapchainKHR ) - sizeof( SwapchainKHR ) ) );
|
SwapchainKHR* buffer = reinterpret_cast<SwapchainKHR*>( reinterpret_cast<char*>( swapchainKHRs.data() ) + createInfos.size() * ( sizeof( UniqueSwapchainKHR ) - sizeof( SwapchainKHR ) ) );
|
||||||
Result result = static_cast<Result>(d.vkCreateSharedSwapchainsKHR( m_device, createInfos.size() , reinterpret_cast<const VkSwapchainCreateInfoKHR*>( createInfos.data() ), reinterpret_cast<const VkAllocationCallbacks*>( static_cast<const AllocationCallbacks*>( allocator ) ), reinterpret_cast<VkSwapchainKHR*>( buffer ) ) );
|
Result result = static_cast<Result>(d.vkCreateSharedSwapchainsKHR( m_device, createInfos.size() , reinterpret_cast<const VkSwapchainCreateInfoKHR*>( createInfos.data() ), reinterpret_cast<const VkAllocationCallbacks*>( static_cast<const AllocationCallbacks*>( allocator ) ), reinterpret_cast<VkSwapchainKHR*>( buffer ) ) );
|
||||||
|
|
||||||
ObjectDeleter<SwapchainKHR> deleter( *this, allocator );
|
ObjectDeleter<Device> deleter( *this, allocator );
|
||||||
for ( size_t i=0 ; i<createInfos.size() ; i++ )
|
for ( size_t i=0 ; i<createInfos.size() ; i++ )
|
||||||
{
|
{
|
||||||
swapchainKHRs.push_back( UniqueSwapchainKHR( buffer[i], deleter ) );
|
swapchainKHRs.push_back( UniqueSwapchainKHR( buffer[i], deleter ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user