| 523 | } |
| 524 | |
| 525 | void ResourceHandler::destroyBufferView( GraphContext & context |
| 526 | , BufferViewId viewId ) |
| 527 | { |
| 528 | lock_type lock( m_bufferViewsMutex ); |
| 529 | auto it = m_bufferViews.find( viewId ); |
| 530 | |
| 531 | if ( it != m_bufferViews.end() ) |
| 532 | { |
| 533 | if ( context.vkDestroyBufferView && it->second ) |
| 534 | { |
| 535 | context.vkDestroyBufferView( context.device, it->second, context.allocator ); |
| 536 | } |
| 537 | |
| 538 | m_bufferViews.erase( it ); |
| 539 | } |
| 540 | } |
| 541 | |
| 542 | void ResourceHandler::destroyImage( GraphContext & context |
| 543 | , ImageId imageId ) |