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>
This commit is contained in:
parent
063f6baaaf
commit
fc1b15f9b0
@ -1913,18 +1913,6 @@ class VkGenerator(object):
|
|||||||
f.write("#ifndef __WINE_VULKAN_THUNKS_H\n")
|
f.write("#ifndef __WINE_VULKAN_THUNKS_H\n")
|
||||||
f.write("#define __WINE_VULKAN_THUNKS_H\n\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.
|
# 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")
|
f.write("/* Functions for which we have custom implementations outside of the thunks. */\n")
|
||||||
for vk_func in self.registry.funcs.values():
|
for vk_func in self.registry.funcs.values():
|
||||||
|
@ -20,6 +20,11 @@
|
|||||||
#ifndef __WINE_VULKAN_PRIVATE_H
|
#ifndef __WINE_VULKAN_PRIVATE_H
|
||||||
#define __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"
|
#include "vulkan_thunks.h"
|
||||||
|
|
||||||
/* Magic value defined by Vulkan ICD / Loader spec */
|
/* Magic value defined by Vulkan ICD / Loader spec */
|
||||||
@ -99,4 +104,10 @@ struct VkQueue_T
|
|||||||
VkQueue queue; /* native queue */
|
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 */
|
#endif /* __WINE_VULKAN_PRIVATE_H */
|
||||||
|
@ -3,18 +3,6 @@
|
|||||||
#ifndef __WINE_VULKAN_THUNKS_H
|
#ifndef __WINE_VULKAN_THUNKS_H
|
||||||
#define __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. */
|
/* Functions for which we have custom implementations outside of the thunks. */
|
||||||
VkResult WINAPI wine_vkAllocateCommandBuffers(VkDevice device, const VkCommandBufferAllocateInfo *pAllocateInfo, VkCommandBuffer *pCommandBuffers);
|
VkResult WINAPI wine_vkAllocateCommandBuffers(VkDevice device, const VkCommandBufferAllocateInfo *pAllocateInfo, VkCommandBuffer *pCommandBuffers);
|
||||||
void WINAPI wine_vkCmdExecuteCommands(VkCommandBuffer commandBuffer, uint32_t commandBufferCount, const VkCommandBuffer *pCommandBuffers);
|
void WINAPI wine_vkCmdExecuteCommands(VkCommandBuffer commandBuffer, uint32_t commandBufferCount, const VkCommandBuffer *pCommandBuffers);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user