| 579 | } |
| 580 | |
| 581 | void ResourceHandler::destroySampler( GraphContext & context |
| 582 | , VkSampler sampler ) |
| 583 | { |
| 584 | lock_type lock( m_samplersMutex ); |
| 585 | auto it = m_samplers.find( sampler ); |
| 586 | |
| 587 | if ( it != m_samplers.end() ) |
| 588 | { |
| 589 | if ( context.vkDestroySampler && it->first ) |
| 590 | { |
| 591 | crgUnregisterObject( context, it->first ); |
| 592 | context.vkDestroySampler( context.device |
| 593 | , it->first |
| 594 | , context.allocator ); |
| 595 | } |
| 596 | |
| 597 | m_samplers.erase( it ); |
| 598 | } |
| 599 | } |
| 600 | |
| 601 | void ResourceHandler::destroyVertexBuffer( GraphContext & context |
| 602 | , VertexBuffer const * buffer ) |
no test coverage detected