From ab99080c90d9c78796432061327db24caa05517c Mon Sep 17 00:00:00 2001 From: Petr Kraus Date: Fri, 8 Jun 2018 19:49:21 +0200 Subject: [PATCH] Fix android buffer extension undefined format VUs --- chapters/resources.txt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/chapters/resources.txt b/chapters/resources.txt index bc167010..1384f9fa 100644 --- a/chapters/resources.txt +++ b/chapters/resources.txt @@ -690,9 +690,18 @@ ifdef::VK_VERSION_1_1,VK_KHR_get_physical_device_properties2[] flink:vkGetPhysicalDeviceQueueFamilyProperties2 for the pname:physicalDevice that was used to create pname:device endif::VK_VERSION_1_1,VK_KHR_get_physical_device_properties2[] -ifdef::VK_ANDROID_external_memory_android_hardware_buffer[] +ifndef::VK_ANDROID_external_memory_android_hardware_buffer[] * [[VUID-VkImageCreateInfo-format-00943]] pname:format must: not be ename:VK_FORMAT_UNDEFINED +endif::VK_ANDROID_external_memory_android_hardware_buffer[] +ifdef::VK_ANDROID_external_memory_android_hardware_buffer[] + * If the pname:pNext chain contains an instance of + slink:VkExternalFormatANDROID, and its member pname:externalFormat is + non-zero the pname:format must: be ename:VK_FORMAT_UNDEFINED. + * If the pname:pNext chain does not contain an instance of + slink:VkExternalFormatANDROID, or does and its member + pname:externalFormat is `0` the pname:format must: not be + ename:VK_FORMAT_UNDEFINED. endif::VK_ANDROID_external_memory_android_hardware_buffer[] * [[VUID-VkImageCreateInfo-extent-00944]] pname:extent::pname:width must: be greater than `0`. @@ -1130,8 +1139,7 @@ include::../api/structs/VkExternalFormatANDROID.txt[] If pname:externalFormat is zero, the effect is as if the sname:VkExternalFormatANDROID structure was not present. -Otherwise, the image will have the specified external format, and -sname:VkImageCreateInfo::pname:format must: be ename:VK_FORMAT_UNDEFINED. +Otherwise, the pname:image will have the specified external format. .Valid Usage ****