wined3d: Eliminate holes in wined3d_resource structure.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2017-04-07 14:45:14 +02:00 committed by Alexandre Julliard
parent e72d21cc2e
commit a48d7a275d
1 changed files with 5 additions and 4 deletions

View File

@ -2749,6 +2749,7 @@ struct wined3d_resource
LONG ref; LONG ref;
LONG bind_count; LONG bind_count;
LONG map_count; LONG map_count;
LONG access_count;
struct wined3d_device *device; struct wined3d_device *device;
enum wined3d_resource_type type; enum wined3d_resource_type type;
enum wined3d_gl_resource_type gl_type; enum wined3d_gl_resource_type gl_type;
@ -2759,20 +2760,20 @@ struct wined3d_resource
DWORD usage; DWORD usage;
enum wined3d_pool pool; enum wined3d_pool pool;
DWORD access_flags; DWORD access_flags;
DWORD draw_binding; WORD draw_binding;
DWORD map_binding; WORD map_binding;
UINT width; UINT width;
UINT height; UINT height;
UINT depth; UINT depth;
UINT size; UINT size;
DWORD priority; DWORD priority;
void *heap_memory; void *heap_memory;
struct list resource_list_entry;
LONG access_count;
void *parent; void *parent;
const struct wined3d_parent_ops *parent_ops; const struct wined3d_parent_ops *parent_ops;
const struct wined3d_resource_ops *resource_ops; const struct wined3d_resource_ops *resource_ops;
struct list resource_list_entry;
}; };
static inline ULONG wined3d_resource_incref(struct wined3d_resource *resource) static inline ULONG wined3d_resource_incref(struct wined3d_resource *resource)