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
ca5f7fe4
Commit
ca5f7fe4
authored
Sep 20, 2021
by
Alexandros Frantzis
Committed by
Alexandre Julliard
Nov 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winewayland.drv: Implement vkGetSwapchainImagesKHR.
This is a simple passthrough implementation to the native Vulkan driver.
parent
03f5fcd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
vulkan.c
dlls/winewayland.drv/vulkan.c
+11
-0
No files found.
dlls/winewayland.drv/vulkan.c
View file @
ca5f7fe4
...
...
@@ -67,6 +67,7 @@ static VkResult (*pvkGetPhysicalDeviceSurfaceFormatsKHR)(VkPhysicalDevice, VkSur
static
VkResult
(
*
pvkGetPhysicalDeviceSurfacePresentModesKHR
)(
VkPhysicalDevice
,
VkSurfaceKHR
,
uint32_t
*
,
VkPresentModeKHR
*
);
static
VkResult
(
*
pvkGetPhysicalDeviceSurfaceSupportKHR
)(
VkPhysicalDevice
,
uint32_t
,
VkSurfaceKHR
,
VkBool32
*
);
static
VkBool32
(
*
pvkGetPhysicalDeviceWaylandPresentationSupportKHR
)(
VkPhysicalDevice
,
uint32_t
,
struct
wl_display
*
);
static
VkResult
(
*
pvkGetSwapchainImagesKHR
)(
VkDevice
,
VkSwapchainKHR
,
uint32_t
*
,
VkImage
*
);
static
void
*
vulkan_handle
;
static
const
struct
vulkan_funcs
vulkan_funcs
;
...
...
@@ -624,6 +625,14 @@ static VkBool32 wayland_vkGetPhysicalDeviceWin32PresentationSupportKHR(VkPhysica
process_wayland
.
wl_display
);
}
static
VkResult
wayland_vkGetSwapchainImagesKHR
(
VkDevice
device
,
VkSwapchainKHR
swapchain
,
uint32_t
*
count
,
VkImage
*
images
)
{
TRACE
(
"%p, 0x%s %p %p
\n
"
,
device
,
wine_dbgstr_longlong
(
swapchain
),
count
,
images
);
return
pvkGetSwapchainImagesKHR
(
device
,
swapchain
,
count
,
images
);
}
static
VkSurfaceKHR
wayland_wine_get_native_surface
(
VkSurfaceKHR
surface
)
{
return
wine_vk_surface_from_handle
(
surface
)
->
native
;
...
...
@@ -655,6 +664,7 @@ static void wine_vk_init(void)
LOAD_FUNCPTR
(
vkGetPhysicalDeviceSurfacePresentModesKHR
);
LOAD_FUNCPTR
(
vkGetPhysicalDeviceSurfaceSupportKHR
);
LOAD_FUNCPTR
(
vkGetPhysicalDeviceWaylandPresentationSupportKHR
);
LOAD_FUNCPTR
(
vkGetSwapchainImagesKHR
);
#undef LOAD_FUNCPTR
#undef LOAD_OPTIONAL_FUNCPTR
...
...
@@ -683,6 +693,7 @@ static const struct vulkan_funcs vulkan_funcs =
.
p_vkGetPhysicalDeviceSurfacePresentModesKHR
=
wayland_vkGetPhysicalDeviceSurfacePresentModesKHR
,
.
p_vkGetPhysicalDeviceSurfaceSupportKHR
=
wayland_vkGetPhysicalDeviceSurfaceSupportKHR
,
.
p_vkGetPhysicalDeviceWin32PresentationSupportKHR
=
wayland_vkGetPhysicalDeviceWin32PresentationSupportKHR
,
.
p_vkGetSwapchainImagesKHR
=
wayland_vkGetSwapchainImagesKHR
,
.
p_wine_get_native_surface
=
wayland_wine_get_native_surface
,
};
...
...
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