class
SurfaceKHRThe bare-minimum required to wrap a VkSurfaceKHR object.
Contents
Uses the glfwCreateWindowSurface function to handle the various platform-specific details that would change otherwise.
Public static functions
- static auto VerifyPresentationSupport(VkPhysicalDevice physical_device, VkSurfaceKHR surface) -> VkBool32
- This function must be called once before presenting to a surface using a physical device, or the validation layers will throw warnings.
Constructors, destructors, conversion operators
- SurfaceKHR(const Instance* _parent, VkPhysicalDevice physical_device, void* window)
- Initializes a new surface KHR for the given instance given the parameters.
Public functions
- void Recreate()
- Destroys then properly re-creates this surface.
Function documentation
vpr:: SurfaceKHR:: SurfaceKHR(const Instance* _parent,
VkPhysicalDevice physical_device,
void* window)
Initializes a new surface KHR for the given instance given the parameters.
Parameters | |
---|---|
_parent | |
physical_device | |
window | Is either a GLFWwindow pointer, or an ANativeWindow pointer. |
Hosted by the specified physical_device.
void vpr:: SurfaceKHR:: Recreate()
Destroys then properly re-creates this surface.
Required as part of a swapchain recreation event.