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
ec9a111f
Commit
ec9a111f
authored
Sep 17, 2021
by
Alexandros Frantzis
Committed by
Alexandre Julliard
Nov 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winewayland.drv: Implement vkDestroySwapchainKHR.
parent
249c21cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
vulkan.c
dlls/winewayland.drv/vulkan.c
+15
-0
No files found.
dlls/winewayland.drv/vulkan.c
View file @
ec9a111f
...
...
@@ -56,6 +56,7 @@ static VkResult (*pvkCreateSwapchainKHR)(VkDevice, const VkSwapchainCreateInfoKH
static
VkResult
(
*
pvkCreateWaylandSurfaceKHR
)(
VkInstance
,
const
VkWaylandSurfaceCreateInfoKHR
*
,
const
VkAllocationCallbacks
*
,
VkSurfaceKHR
*
);
static
void
(
*
pvkDestroyInstance
)(
VkInstance
,
const
VkAllocationCallbacks
*
);
static
void
(
*
pvkDestroySurfaceKHR
)(
VkInstance
,
VkSurfaceKHR
,
const
VkAllocationCallbacks
*
);
static
void
(
*
pvkDestroySwapchainKHR
)(
VkDevice
,
VkSwapchainKHR
,
const
VkAllocationCallbacks
*
);
static
VkResult
(
*
pvkEnumerateInstanceExtensionProperties
)(
const
char
*
,
uint32_t
*
,
VkExtensionProperties
*
);
static
void
*
(
*
pvkGetDeviceProcAddr
)(
VkDevice
,
const
char
*
);
static
void
*
(
*
pvkGetInstanceProcAddr
)(
VkInstance
,
const
char
*
);
...
...
@@ -366,6 +367,18 @@ static void wayland_vkDestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surfac
wine_vk_surface_destroy
(
wine_vk_surface
);
}
static
void
wayland_vkDestroySwapchainKHR
(
VkDevice
device
,
VkSwapchainKHR
swapchain
,
const
VkAllocationCallbacks
*
allocator
)
{
TRACE
(
"%p, 0x%s %p
\n
"
,
device
,
wine_dbgstr_longlong
(
swapchain
),
allocator
);
if
(
allocator
)
FIXME
(
"Support for allocation callbacks not implemented yet
\n
"
);
pvkDestroySwapchainKHR
(
device
,
swapchain
,
NULL
/* allocator */
);
}
static
VkResult
wayland_vkEnumerateInstanceExtensionProperties
(
const
char
*
layer_name
,
uint32_t
*
count
,
VkExtensionProperties
*
properties
)
...
...
@@ -602,6 +615,7 @@ static void wine_vk_init(void)
LOAD_FUNCPTR
(
vkCreateWaylandSurfaceKHR
);
LOAD_FUNCPTR
(
vkDestroyInstance
);
LOAD_FUNCPTR
(
vkDestroySurfaceKHR
);
LOAD_FUNCPTR
(
vkDestroySwapchainKHR
);
LOAD_FUNCPTR
(
vkEnumerateInstanceExtensionProperties
);
LOAD_FUNCPTR
(
vkGetDeviceProcAddr
);
LOAD_FUNCPTR
(
vkGetInstanceProcAddr
);
...
...
@@ -627,6 +641,7 @@ static const struct vulkan_funcs vulkan_funcs =
.
p_vkCreateWin32SurfaceKHR
=
wayland_vkCreateWin32SurfaceKHR
,
.
p_vkDestroyInstance
=
wayland_vkDestroyInstance
,
.
p_vkDestroySurfaceKHR
=
wayland_vkDestroySurfaceKHR
,
.
p_vkDestroySwapchainKHR
=
wayland_vkDestroySwapchainKHR
,
.
p_vkEnumerateInstanceExtensionProperties
=
wayland_vkEnumerateInstanceExtensionProperties
,
.
p_vkGetDeviceProcAddr
=
wayland_vkGetDeviceProcAddr
,
.
p_vkGetInstanceProcAddr
=
wayland_vkGetInstanceProcAddr
,
...
...
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