Skip to content

Commit e682db8

Browse files
Better document VkIcdSurface ABI in wsi.h
1 parent e8132aa commit e682db8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

loader/wsi.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
#include "loader_common.h"
2626

2727
typedef struct {
28+
// This union holds the data that drivers which use ICD interface version 2 and before expect. This is so they can dereference
29+
// VkSurfaceKHR to get this struct and access the creation parameters used in subsequent API calls, such as get surface formats
30+
// & get surface present modes.
31+
// Thus, these members need to stay here in order to preserve ABI compatibility.
2832
union {
2933
#if defined(VK_USE_PLATFORM_WAYLAND_KHR)
3034
VkIcdSurfaceWayland wayland_surf;

0 commit comments

Comments
 (0)