UgWindowSurface

Vulkan window surface creation and destruction

destroy

Destroy a Vulkan window surface

U0 destroy(VkInstance instance, VkSurfaceKHR surface);

Parameters

  • instance — Vulkan instance the surface belongs to
  • surface — Surface to destroy

create

Create a Vulkan surface for a GLFW window

VkSurfaceKHR create(VkInstance instance, UgWindow.It& window);

Parameters

  • instance — Vulkan instance to create the surface on
  • window — GLFW window to attach the surface to

Returns — Newly created surface handle