Used to get the VkExternalFormatANDROID without having to use ifdef in logic Result of zero is same of not having pNext struct
| 195 | // Used to get the VkExternalFormatANDROID without having to use ifdef in logic |
| 196 | // Result of zero is same of not having pNext struct |
| 197 | uint64_t GetExternalFormat(const void* pNext) { |
| 198 | #if defined(VK_USE_PLATFORM_ANDROID_KHR) |
| 199 | if (pNext) { |
| 200 | const auto* external_format = vku::FindStructInPNextChain<VkExternalFormatANDROID>(pNext); |
| 201 | if (external_format) { |
| 202 | return external_format->externalFormat; |
| 203 | } |
| 204 | } |
| 205 | #endif |
| 206 | (void)pNext; |
| 207 | return 0; |
| 208 | } |
| 209 | |
| 210 | // vkspec.html#formats-planes-image-aspect |
| 211 | bool IsValidPlaneAspect(VkFormat format, VkImageAspectFlags aspect_mask) { |
no outgoing calls
no test coverage detected