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

Method RecreateDepthTexture

libs/drape/vulkan/vulkan_base_context.cpp:1037–1048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1035}
1036
1037void VulkanBaseContext::RecreateDepthTexture()
1038{
1039 Texture::Params params;
1040 params.m_width = m_surfaceCapabilities.currentExtent.width;
1041 params.m_height = m_surfaceCapabilities.currentExtent.height;
1042 params.m_format = TextureFormat::Depth;
1043 params.m_allocator = GetDefaultAllocator(this);
1044 params.m_isRenderTarget = true;
1045
1046 m_depthTexture = make_unique_dp<VulkanTexture>(params.m_allocator);
1047 m_depthTexture->Create(this, params, nullptr);
1048}
1049
1050VkRenderPass VulkanBaseContext::CreateRenderPass(uint32_t attachmentsCount, AttachmentsOperations const & attachmentsOp,
1051 VkFormat colorFormat, VkImageLayout initLayout,

Callers

nothing calls this directly

Calls 2

GetDefaultAllocatorFunction · 0.85
CreateMethod · 0.45

Tested by

no test coverage detected