vulkanalia icon indicating copy to clipboard operation
vulkanalia copied to clipboard

Handle `VK_INCOMPLETE` result from commands that return lists

Open KyleMayes opened this issue 2 months ago • 0 comments

From https://docs.vulkan.org/refpages/latest/refpages/source/vkEnumerateInstanceExtensionProperties.html:

If pProperties is NULL, then the number of extensions properties available is returned in pPropertyCount. Otherwise, pPropertyCount must point to a variable set by the application to the number of elements in the pProperties array, and on return the variable is overwritten with the number of structures actually written to pProperties. If pPropertyCount is less than the number of extension properties available, at most pPropertyCount structures will be written, and VK_INCOMPLETE will be returned instead of VK_SUCCESS, to indicate that not all the available properties were returned.

I think this actually happening is very rare?

But regardless the command wrappers should loop until the result is VK_SUCCESS and not VK_INCOMPLETE (which is what ash does)

KyleMayes avatar Nov 08 '25 02:11 KyleMayes