Skip to content

Commit

Permalink
Better document VkIcdSurface ABI in wsi.h
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-lunarg committed Jan 17, 2025
1 parent e8132aa commit e682db8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions loader/wsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
#include "loader_common.h"

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

0 comments on commit e682db8

Please sign in to comment.