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:
@@ -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) \
|
||||
|
||||
Reference in New Issue
Block a user