MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / IsImageLayoutDepthOnly

Function IsImageLayoutDepthOnly

layers/utils/image_utils.cpp:271–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271bool IsImageLayoutDepthOnly(VkImageLayout layout) {
272 constexpr std::array depth_only_layouts = {VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL, VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL};
273 return std::any_of(depth_only_layouts.begin(), depth_only_layouts.end(),
274 [layout](const VkImageLayout read_only_layout) { return layout == read_only_layout; });
275}
276
277bool IsImageLayoutDepthReadOnly(VkImageLayout layout) {
278 constexpr std::array read_only_layouts = {

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected