MCPcopy Create free account
hub / github.com/comaps/comaps / DestroyForVulkan

Method DestroyForVulkan

libs/shaders/program_manager.cpp:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void ProgramManager::DestroyForVulkan(ref_ptr<dp::GraphicsContext> context)
89{
90 ref_ptr<dp::vulkan::VulkanBaseContext> vulkanContext = context;
91 vulkanContext->ResetPipelineCache();
92
93 ASSERT(dynamic_cast<vulkan::VulkanProgramParamsSetter *>(m_paramsSetter.get()) != nullptr, ());
94 static_cast<vulkan::VulkanProgramParamsSetter *>(m_paramsSetter.get())->Destroy(vulkanContext);
95
96 ASSERT(dynamic_cast<vulkan::VulkanProgramPool *>(m_pool.get()) != nullptr, ());
97 static_cast<vulkan::VulkanProgramPool *>(m_pool.get())->Destroy(vulkanContext);
98}
99
100ref_ptr<dp::GpuProgram> ProgramManager::GetProgram(Program program)
101{

Callers

nothing calls this directly

Calls 4

ASSERTFunction · 0.85
ResetPipelineCacheMethod · 0.80
getMethod · 0.65
DestroyMethod · 0.45

Tested by

no test coverage detected