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
{
struct wine_vk_base base;
struct vulkan_device_funcs funcs;
VkDevice device; /* native device */
uint32_t max_queue_families;
struct VkQueue_T **queues;
VkDevice device; /* native device */
uint32_t max_queue_families;
unsigned int quirks;
};
......@@ -85,14 +84,13 @@ struct VkInstance_T
{
struct wine_vk_base base;
struct vulkan_instance_funcs funcs;
VkInstance instance; /* native instance */
/* We cache devices as we need to wrap them as they are
* dispatchable objects.
*/
uint32_t num_phys_devs;
struct VkPhysicalDevice_T **phys_devs;
VkInstance instance; /* native instance */
uint32_t num_phys_devs;
unsigned int quirks;
};
......@@ -101,11 +99,10 @@ struct VkPhysicalDevice_T
{
struct wine_vk_base base;
struct VkInstance_T *instance; /* parent */
VkPhysicalDevice phys_dev; /* native physical device */
uint32_t extension_count;
VkExtensionProperties *extensions;
VkPhysicalDevice phys_dev; /* native physical device */
uint32_t extension_count;
};
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