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

Function IsMultiplePlaneAspect

layers/utils/image_utils.cpp:229–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229bool IsMultiplePlaneAspect(VkImageAspectFlags aspect_mask) {
230 // If checking for multiple planes, there will already be another check if valid for plane count
231 constexpr VkImageAspectFlags valid_planes =
232 VK_IMAGE_ASPECT_PLANE_0_BIT | VK_IMAGE_ASPECT_PLANE_1_BIT | VK_IMAGE_ASPECT_PLANE_2_BIT;
233 const VkImageAspectFlags planes = aspect_mask & valid_planes;
234 return planes != 0 && !IsPowerOfTwo(planes);
235}
236
237bool IsAnyPlaneAspect(VkImageAspectFlags aspect_mask) {
238 constexpr VkImageAspectFlags valid_planes =

Callers 2

TEST_FFunction · 0.85

Calls 1

IsPowerOfTwoFunction · 0.85

Tested by

no test coverage detected