| 776 | } |
| 777 | |
| 778 | void createDepthResources() { |
| 779 | VkFormat depthFormat = findDepthFormat(); |
| 780 | |
| 781 | createImage(swapChainExtent.width, swapChainExtent.height, 1, depthFormat, VK_IMAGE_TILING_OPTIMAL, VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, depthImage, depthImageMemory); |
| 782 | depthImageView = createImageView(depthImage, depthFormat, VK_IMAGE_ASPECT_DEPTH_BIT, 1); |
| 783 | } |
| 784 | |
| 785 | VkFormat findSupportedFormat(const std::vector<VkFormat>& candidates, VkImageTiling tiling, VkFormatFeatureFlags features) { |
| 786 | for (VkFormat format : candidates) { |
nothing calls this directly
no outgoing calls
no test coverage detected