MCPcopy Create free account
hub / github.com/DragonJoker/RenderGraph / ~ContextResourcesCache

Method ~ContextResourcesCache

source/RenderGraph/ResourceHandler.cpp:629–660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 6

destroyBufferViewMethod · 0.80
destroyBufferMethod · 0.80
destroyImageViewMethod · 0.80
destroyImageMethod · 0.80
destroySamplerMethod · 0.80
destroyVertexBufferMethod · 0.80

Tested by

no test coverage detected