winevulkan: Adequate vkEnumerateInstanceLayerProperties to the Vulkan spec.
commitdff2f63210a33e25a78897fb1d276b75705740ba
authorVictor Hermann Chiletto <v@hnn.net.br>
Sat, 6 Mar 2021 20:46:29 +0000 (6 17:46 -0300)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 19 Mar 2021 09:08:53 +0000 (19 10:08 +0100)
tree950399373d0f9582900339cd4206fafec3abb43c
parented44832c7d586ab52dab08b0a40d36c9a08ff2b6
winevulkan: Adequate vkEnumerateInstanceLayerProperties to the Vulkan spec.

The section for vkEnumerateInstanceLayerProperties states [1]:

On success, this command returns
 * VK_SUCCESS
 * VK_INCOMPLETE

On failure, this command returns
 * VK_ERROR_OUT_OF_HOST_MEMORY
 * VK_ERROR_OUT_OF_DEVICE_MEMORY

Always setting the layer count to zero and returning VK_SUCCESS is
valid, as even if the function is given an array in pProperties, it's
filled with zero layers

[1]: https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkEnumerateInstanceLayerProperties.html

Signed-off-by: Victor Hermann Chiletto <v@hnn.net.br>
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Signed-off-by: Liam Middlebrook <lmiddlebrook@nvidia.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winevulkan/vulkan.c