Commit cf5f750e authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

winevulkan: Pack structures better.

Makes structures slightly smaller on 64-bit. Signed-off-by: 's avatarJózef Kucia <jkucia@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 9451a42c
...@@ -72,11 +72,10 @@ struct VkDevice_T ...@@ -72,11 +72,10 @@ struct VkDevice_T
{ {
struct wine_vk_base base; struct wine_vk_base base;
struct vulkan_device_funcs funcs; struct vulkan_device_funcs funcs;
VkDevice device; /* native device */
uint32_t max_queue_families;
struct VkQueue_T **queues; struct VkQueue_T **queues;
uint32_t max_queue_families;
VkDevice device; /* native device */
unsigned int quirks; unsigned int quirks;
}; };
...@@ -85,14 +84,13 @@ struct VkInstance_T ...@@ -85,14 +84,13 @@ struct VkInstance_T
{ {
struct wine_vk_base base; struct wine_vk_base base;
struct vulkan_instance_funcs funcs; struct vulkan_instance_funcs funcs;
VkInstance instance; /* native instance */
/* We cache devices as we need to wrap them as they are /* We cache devices as we need to wrap them as they are
* dispatchable objects. * dispatchable objects.
*/ */
uint32_t num_phys_devs;
struct VkPhysicalDevice_T **phys_devs; struct VkPhysicalDevice_T **phys_devs;
uint32_t num_phys_devs;
VkInstance instance; /* native instance */
unsigned int quirks; unsigned int quirks;
}; };
...@@ -101,11 +99,10 @@ struct VkPhysicalDevice_T ...@@ -101,11 +99,10 @@ struct VkPhysicalDevice_T
{ {
struct wine_vk_base base; struct wine_vk_base base;
struct VkInstance_T *instance; /* parent */ struct VkInstance_T *instance; /* parent */
VkPhysicalDevice phys_dev; /* native physical device */
uint32_t extension_count;
VkExtensionProperties *extensions; VkExtensionProperties *extensions;
uint32_t extension_count;
VkPhysicalDevice phys_dev; /* native physical device */
}; };
struct VkQueue_T struct VkQueue_T
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment