mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 12:30:09 +01:00
vulkan/wsi: Add a WSI_FROM_HANDLE macro
Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Chad Versace <chadversary@chromium.org>
This commit is contained in:
parent
69365d72de
commit
42dd06d957
1 changed files with 3 additions and 0 deletions
|
|
@ -177,6 +177,9 @@ struct wsi_callbacks {
|
|||
return (__VkType)(uintptr_t) _obj; \
|
||||
}
|
||||
|
||||
#define WSI_FROM_HANDLE(__wsi_type, __name, __handle) \
|
||||
struct __wsi_type *__name = __wsi_type ## _from_handle(__handle)
|
||||
|
||||
WSI_DEFINE_NONDISP_HANDLE_CASTS(wsi_swapchain, VkSwapchainKHR)
|
||||
|
||||
#define ICD_DEFINE_NONDISP_HANDLE_CASTS(__VkIcdType, __VkType) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue