Structures
VkWin32SurfaceCreateInfoKHR
Structure specifying parameters of a newly created Win32 surface object
The VkWin32SurfaceCreateInfoKHR
structure is defined as:
typedef struct VkWin32SurfaceCreateInfoKHR {
VkStructureType sType;
const void* pNext;
VkWin32SurfaceCreateFlagsKHR flags;
HINSTANCE hinstance;
HWND hwnd;
} VkWin32SurfaceCreateInfoKHR;
sType
is a VkStructureType value identifying this structure.pNext
isNULL
or a pointer to a structure extending this structure.flags
is reserved for future use.hinstance
is the Win32HINSTANCE
for the window to associate the surface with.hwnd
is the Win32HWND
for the window to associate the surface with.
Valid Usage
VUID-VkWin32SurfaceCreateInfoKHR-hinstance-01307
hinstance
must be a valid Win32 HINSTANCE
VUID-VkWin32SurfaceCreateInfoKHR-hwnd-01308
hwnd
must be a valid Win32 HWND
Valid Usage (Implicit)
VUID-VkWin32SurfaceCreateInfoKHR-sType-sType
sType
must be VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR
VUID-VkWin32SurfaceCreateInfoKHR-pNext-pNext
pNext
must be NULL
VUID-VkWin32SurfaceCreateInfoKHR-flags-zerobitmask
flags
must be 0