mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-13 09:50:17 +01:00
zink: Learn about VK_KHR_swapchain
We're gonna want it eventually. Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10382>
This commit is contained in:
parent
fcb5ba5816
commit
bbeee415ee
3 changed files with 9 additions and 0 deletions
|
|
@ -137,6 +137,7 @@ EXTENSIONS = [
|
|||
alias="scalar_block_layout",
|
||||
features=True,
|
||||
conditions=["$feats.scalarBlockLayout"]),
|
||||
Extension("VK_KHR_swapchain"),
|
||||
]
|
||||
|
||||
# constructor: Versions(device_version(major, minor, patch), struct_version(major, minor))
|
||||
|
|
|
|||
|
|
@ -1203,6 +1203,11 @@ load_device_extensions(struct zink_screen *screen)
|
|||
}
|
||||
#endif // VK_EXTX_PORTABILITY_SUBSET_EXTENSION_NAME
|
||||
|
||||
if (screen->info.have_KHR_swapchain) {
|
||||
GET_PROC_ADDR(CreateSwapchainKHR);
|
||||
GET_PROC_ADDR(DestroySwapchainKHR);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -146,6 +146,9 @@ struct zink_screen {
|
|||
PFN_vkGetIOSurfaceMVK vk_GetIOSurfaceMVK;
|
||||
#endif
|
||||
|
||||
PFN_vkCreateSwapchainKHR vk_CreateSwapchainKHR;
|
||||
PFN_vkDestroySwapchainKHR vk_DestroySwapchainKHR;
|
||||
|
||||
struct {
|
||||
bool dual_color_blend_by_location;
|
||||
bool inline_uniforms;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue