MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator / FindDepthFormat

Function FindDepthFormat

src/VulkanSample.cpp:932–943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

930}
931
932static VkFormat FindDepthFormat()
933{
934 std::vector<VkFormat> formats;
935 formats.push_back(VK_FORMAT_D32_SFLOAT);
936 formats.push_back(VK_FORMAT_D32_SFLOAT_S8_UINT);
937 formats.push_back(VK_FORMAT_D24_UNORM_S8_UINT);
938
939 return FindSupportedFormat(
940 formats,
941 VK_IMAGE_TILING_OPTIMAL,
942 VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT);
943}
944
945static void CreateSwapchain()
946{

Callers 1

CreateSwapchainFunction · 0.85

Calls 2

FindSupportedFormatFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected