MCPcopy Create free account
hub / github.com/DragonJoker/RenderGraph / destroySampler

Method destroySampler

source/RenderGraph/ResourceHandler.cpp:581–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 )

Callers 1

Calls 3

findMethod · 0.80
eraseMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected