MCPcopy Create free account
hub / github.com/KhronosGroup/glTF-IBL-Sampler / destroyImage

Method destroyImage

lib/source/vkHelper.cpp:1109–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1107}
1108
1109void IBLLib::vkHelper::destroyImage(VkImage _image)
1110{
1111 if (m_logicalDevice != VK_NULL_HANDLE)
1112 {
1113 for (auto it = m_images.begin(), end = m_images.end(); it != end; ++it)
1114 {
1115 if (it->image == _image)
1116 {
1117 it->destroy(m_logicalDevice);
1118 m_images.erase(it);
1119 break;
1120 }
1121 }
1122 }
1123}
1124
1125VkResult IBLLib::vkHelper::createImageView(VkImageView& _outView, VkImage _image, VkImageSubresourceRange _range, VkFormat _format, VkImageViewType _type, VkComponentMapping _swizzle)
1126{

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.80

Tested by

no test coverage detected