| 627 | } |
| 628 | |
| 629 | ContextResourcesCache::~ContextResourcesCache()noexcept |
| 630 | { |
| 631 | for ( auto const & [bufferView, _] : m_bufferViews ) |
| 632 | { |
| 633 | m_handler.destroyBufferView( m_context, bufferView ); |
| 634 | } |
| 635 | |
| 636 | for ( auto const & [buffer, _] : m_buffers ) |
| 637 | { |
| 638 | m_handler.destroyBuffer( m_context, buffer ); |
| 639 | } |
| 640 | |
| 641 | for ( auto const & [imageView, _] : m_imageViews ) |
| 642 | { |
| 643 | m_handler.destroyImageView( m_context, imageView ); |
| 644 | } |
| 645 | |
| 646 | for ( auto const & [image, _] : m_images ) |
| 647 | { |
| 648 | m_handler.destroyImage( m_context, image ); |
| 649 | } |
| 650 | |
| 651 | for ( auto const & [_, sampler] : m_samplers ) |
| 652 | { |
| 653 | m_handler.destroySampler( m_context, sampler ); |
| 654 | } |
| 655 | |
| 656 | for ( auto const & [_, buffer] : m_vertexBuffers ) |
| 657 | { |
| 658 | m_handler.destroyVertexBuffer( m_context, buffer ); |
| 659 | } |
| 660 | } |
| 661 | |
| 662 | VkBuffer ContextResourcesCache::createBuffer( BufferId const & buffer ) |
| 663 | { |
nothing calls this directly
no test coverage detected