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

Function GetExternalFormat

layers/utils/image_utils.cpp:197–208  ·  view source on GitHub ↗

Used to get the VkExternalFormatANDROID without having to use ifdef in logic Result of zero is same of not having pNext struct

Source from the content-addressed store, hash-verified

195// Used to get the VkExternalFormatANDROID without having to use ifdef in logic
196// Result of zero is same of not having pNext struct
197uint64_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
211bool IsValidPlaneAspect(VkFormat format, VkImageAspectFlags aspect_mask) {

Calls

no outgoing calls

Tested by

no test coverage detected