Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
fc1b15f9
Commit
fc1b15f9
authored
Mar 29, 2018
by
Józef Kucia
Committed by
Alexandre Julliard
Mar 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Move some autogenerated code to vulkan_private.h.
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
063f6baa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
24 deletions
+11
-24
make_vulkan
dlls/winevulkan/make_vulkan
+0
-12
vulkan_private.h
dlls/winevulkan/vulkan_private.h
+11
-0
vulkan_thunks.h
dlls/winevulkan/vulkan_thunks.h
+0
-12
No files found.
dlls/winevulkan/make_vulkan
View file @
fc1b15f9
...
...
@@ -1913,18 +1913,6 @@ class VkGenerator(object):
f
.
write
(
"#ifndef __WINE_VULKAN_THUNKS_H
\n
"
)
f
.
write
(
"#define __WINE_VULKAN_THUNKS_H
\n\n
"
)
f
.
write
(
"/* Perform vulkan struct conversion on 32-bit x86 platforms. */
\n
"
)
f
.
write
(
"#if defined(__i386__)
\n
"
)
f
.
write
(
"#define USE_STRUCT_CONVERSION
\n
"
)
f
.
write
(
"#endif
\n\n
"
)
f
.
write
(
"/* For use by vk_icdGetInstanceProcAddr / vkGetInstanceProcAddr */
\n
"
)
f
.
write
(
"void *wine_vk_get_device_proc_addr(const char *name) DECLSPEC_HIDDEN;
\n
"
)
f
.
write
(
"void *wine_vk_get_instance_proc_addr(const char *name) DECLSPEC_HIDDEN;
\n\n
"
)
f
.
write
(
"BOOL wine_vk_device_extension_supported(const char *name) DECLSPEC_HIDDEN;
\n
"
)
f
.
write
(
"BOOL wine_vk_instance_extension_supported(const char *name) DECLSPEC_HIDDEN;
\n\n
"
)
# Generate prototypes for device and instance functions requiring a custom implementation.
f
.
write
(
"/* Functions for which we have custom implementations outside of the thunks. */
\n
"
)
for
vk_func
in
self
.
registry
.
funcs
.
values
():
...
...
dlls/winevulkan/vulkan_private.h
View file @
fc1b15f9
...
...
@@ -20,6 +20,11 @@
#ifndef __WINE_VULKAN_PRIVATE_H
#define __WINE_VULKAN_PRIVATE_H
/* Perform vulkan struct conversion on 32-bit x86 platforms. */
#if defined(__i386__)
#define USE_STRUCT_CONVERSION
#endif
#include "vulkan_thunks.h"
/* Magic value defined by Vulkan ICD / Loader spec */
...
...
@@ -99,4 +104,10 @@ struct VkQueue_T
VkQueue
queue
;
/* native queue */
};
void
*
wine_vk_get_device_proc_addr
(
const
char
*
name
)
DECLSPEC_HIDDEN
;
void
*
wine_vk_get_instance_proc_addr
(
const
char
*
name
)
DECLSPEC_HIDDEN
;
BOOL
wine_vk_device_extension_supported
(
const
char
*
name
)
DECLSPEC_HIDDEN
;
BOOL
wine_vk_instance_extension_supported
(
const
char
*
name
)
DECLSPEC_HIDDEN
;
#endif
/* __WINE_VULKAN_PRIVATE_H */
dlls/winevulkan/vulkan_thunks.h
View file @
fc1b15f9
...
...
@@ -3,18 +3,6 @@
#ifndef __WINE_VULKAN_THUNKS_H
#define __WINE_VULKAN_THUNKS_H
/* Perform vulkan struct conversion on 32-bit x86 platforms. */
#if defined(__i386__)
#define USE_STRUCT_CONVERSION
#endif
/* For use by vk_icdGetInstanceProcAddr / vkGetInstanceProcAddr */
void
*
wine_vk_get_device_proc_addr
(
const
char
*
name
)
DECLSPEC_HIDDEN
;
void
*
wine_vk_get_instance_proc_addr
(
const
char
*
name
)
DECLSPEC_HIDDEN
;
BOOL
wine_vk_device_extension_supported
(
const
char
*
name
)
DECLSPEC_HIDDEN
;
BOOL
wine_vk_instance_extension_supported
(
const
char
*
name
)
DECLSPEC_HIDDEN
;
/* Functions for which we have custom implementations outside of the thunks. */
VkResult
WINAPI
wine_vkAllocateCommandBuffers
(
VkDevice
device
,
const
VkCommandBufferAllocateInfo
*
pAllocateInfo
,
VkCommandBuffer
*
pCommandBuffers
);
void
WINAPI
wine_vkCmdExecuteCommands
(
VkCommandBuffer
commandBuffer
,
uint32_t
commandBufferCount
,
const
VkCommandBuffer
*
pCommandBuffers
);
...
...
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