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
36a2e6b1
Commit
36a2e6b1
authored
Sep 15, 2021
by
Alexandros Frantzis
Committed by
Alexandre Julliard
Nov 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winewayland.drv: Implement vkDestroyInstance.
parent
bd0d8826
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
vulkan.c
dlls/winewayland.drv/vulkan.c
+14
-0
No files found.
dlls/winewayland.drv/vulkan.c
View file @
36a2e6b1
...
...
@@ -41,6 +41,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(vulkan);
#ifdef SONAME_LIBVULKAN
static
VkResult
(
*
pvkCreateInstance
)(
const
VkInstanceCreateInfo
*
,
const
VkAllocationCallbacks
*
,
VkInstance
*
);
static
void
(
*
pvkDestroyInstance
)(
VkInstance
,
const
VkAllocationCallbacks
*
);
static
VkResult
(
*
pvkEnumerateInstanceExtensionProperties
)(
const
char
*
,
uint32_t
*
,
VkExtensionProperties
*
);
static
void
*
vulkan_handle
;
...
...
@@ -116,6 +117,17 @@ static VkResult wayland_vkCreateInstance(const VkInstanceCreateInfo *create_info
return
res
;
}
static
void
wayland_vkDestroyInstance
(
VkInstance
instance
,
const
VkAllocationCallbacks
*
allocator
)
{
TRACE
(
"%p %p
\n
"
,
instance
,
allocator
);
if
(
allocator
)
FIXME
(
"Support for allocation callbacks not implemented yet
\n
"
);
pvkDestroyInstance
(
instance
,
NULL
/* allocator */
);
}
static
VkResult
wayland_vkEnumerateInstanceExtensionProperties
(
const
char
*
layer_name
,
uint32_t
*
count
,
VkExtensionProperties
*
properties
)
...
...
@@ -168,6 +180,7 @@ static void wine_vk_init(void)
#define LOAD_FUNCPTR(f) if (!(p##f = dlsym(vulkan_handle, #f))) goto fail
LOAD_FUNCPTR
(
vkCreateInstance
);
LOAD_FUNCPTR
(
vkDestroyInstance
);
LOAD_FUNCPTR
(
vkEnumerateInstanceExtensionProperties
);
#undef LOAD_FUNCPTR
...
...
@@ -181,6 +194,7 @@ fail:
static
const
struct
vulkan_funcs
vulkan_funcs
=
{
.
p_vkCreateInstance
=
wayland_vkCreateInstance
,
.
p_vkDestroyInstance
=
wayland_vkDestroyInstance
,
.
p_vkEnumerateInstanceExtensionProperties
=
wayland_vkEnumerateInstanceExtensionProperties
,
};
...
...
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