Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
24ad12f3
Commit
24ad12f3
authored
Dec 22, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move struct wined3d_bo_vk to wined3d_vk.h.
parent
45a49d11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
46 deletions
+47
-46
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-46
wined3d_vk.h
dlls/wined3d/wined3d_vk.h
+46
-0
No files found.
dlls/wined3d/wined3d_private.h
View file @
24ad12f3
...
...
@@ -54,7 +54,6 @@
#include "objbase.h"
#include "wine/wined3d.h"
#include "wined3d_gl.h"
#include "wined3d_vk.h"
#include "wine/list.h"
#include "wine/rbtree.h"
#include "wine/wgl_driver.h"
...
...
@@ -1715,51 +1714,7 @@ struct wined3d_bo_user
bool
valid
;
};
struct
wined3d_bo_vk
{
struct
wined3d_bo
b
;
VkBuffer
vk_buffer
;
struct
wined3d_allocator_block
*
memory
;
struct
wined3d_bo_slab_vk
*
slab
;
VkDeviceMemory
vk_memory
;
VkDeviceSize
size
;
VkBufferUsageFlags
usage
;
VkMemoryPropertyFlags
memory_type
;
uint64_t
command_buffer_id
;
bool
host_synced
;
};
static
inline
struct
wined3d_bo_vk
*
wined3d_bo_vk
(
struct
wined3d_bo
*
bo
)
{
return
CONTAINING_RECORD
(
bo
,
struct
wined3d_bo_vk
,
b
);
}
struct
wined3d_bo_slab_vk_key
{
VkMemoryPropertyFlags
memory_type
;
VkBufferUsageFlags
usage
;
VkDeviceSize
size
;
};
struct
wined3d_bo_slab_vk
{
struct
wine_rb_entry
entry
;
struct
wined3d_bo_slab_vk
*
next
;
VkMemoryPropertyFlags
requested_memory_type
;
struct
wined3d_bo_vk
bo
;
unsigned
int
map_count
;
void
*
map_ptr
;
uint32_t
map
;
};
void
*
wined3d_bo_slab_vk_map
(
struct
wined3d_bo_slab_vk
*
slab_vk
,
struct
wined3d_context_vk
*
context_vk
)
DECLSPEC_HIDDEN
;
void
wined3d_bo_slab_vk_unmap
(
struct
wined3d_bo_slab_vk
*
slab_vk
,
struct
wined3d_context_vk
*
context_vk
)
DECLSPEC_HIDDEN
;
#include "wined3d_vk.h"
struct
wined3d_bo_address
{
...
...
dlls/wined3d/wined3d_vk.h
View file @
24ad12f3
...
...
@@ -248,4 +248,50 @@ VkBufferUsageFlags vk_buffer_usage_from_bind_flags(uint32_t bind_flags) DECLSPEC
VkMemoryPropertyFlags
vk_memory_type_from_access_flags
(
uint32_t
access
,
uint32_t
usage
)
DECLSPEC_HIDDEN
;
const
char
*
wined3d_debug_vkresult
(
VkResult
vr
)
DECLSPEC_HIDDEN
;
struct
wined3d_bo_vk
{
struct
wined3d_bo
b
;
VkBuffer
vk_buffer
;
struct
wined3d_allocator_block
*
memory
;
struct
wined3d_bo_slab_vk
*
slab
;
VkDeviceMemory
vk_memory
;
VkDeviceSize
size
;
VkBufferUsageFlags
usage
;
VkMemoryPropertyFlags
memory_type
;
uint64_t
command_buffer_id
;
bool
host_synced
;
};
static
inline
struct
wined3d_bo_vk
*
wined3d_bo_vk
(
struct
wined3d_bo
*
bo
)
{
return
CONTAINING_RECORD
(
bo
,
struct
wined3d_bo_vk
,
b
);
}
struct
wined3d_bo_slab_vk_key
{
VkMemoryPropertyFlags
memory_type
;
VkBufferUsageFlags
usage
;
VkDeviceSize
size
;
};
struct
wined3d_bo_slab_vk
{
struct
wine_rb_entry
entry
;
struct
wined3d_bo_slab_vk
*
next
;
VkMemoryPropertyFlags
requested_memory_type
;
struct
wined3d_bo_vk
bo
;
unsigned
int
map_count
;
void
*
map_ptr
;
uint32_t
map
;
};
void
*
wined3d_bo_slab_vk_map
(
struct
wined3d_bo_slab_vk
*
slab_vk
,
struct
wined3d_context_vk
*
context_vk
)
DECLSPEC_HIDDEN
;
void
wined3d_bo_slab_vk_unmap
(
struct
wined3d_bo_slab_vk
*
slab_vk
,
struct
wined3d_context_vk
*
context_vk
)
DECLSPEC_HIDDEN
;
#endif
/* __WINE_WINED3D_VK */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment