| 562 | } |
| 563 | |
| 564 | void ResourceHandler::destroyImageView( GraphContext & context |
| 565 | , ImageViewId viewId ) |
| 566 | { |
| 567 | lock_type lock( m_bufferViewsMutex ); |
| 568 | auto it = m_imageViews.find( viewId ); |
| 569 | |
| 570 | if ( it != m_imageViews.end() ) |
| 571 | { |
| 572 | if ( context.vkDestroyImageView && it->second ) |
| 573 | { |
| 574 | context.vkDestroyImageView( context.device, it->second, context.allocator ); |
| 575 | } |
| 576 | |
| 577 | m_imageViews.erase( it ); |
| 578 | } |
| 579 | } |
| 580 | |
| 581 | void ResourceHandler::destroySampler( GraphContext & context |
| 582 | , VkSampler sampler ) |