Class VulkanLWJGLExtKHRSurface
java.lang.Object
com.io7m.jcoronado.lwjgl.internal.VulkanLWJGLExtKHRSurface
- All Implemented Interfaces:
VulkanExtensionType,VulkanExtKHRSurfaceType
Access to the
VK_KHR_surface extension.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.io7m.jcoronado.extensions.khr_surface.api.VulkanExtKHRSurfaceType
VulkanExtKHRSurfaceType.VulkanKHRSurfaceType -
Method Summary
Modifier and TypeMethodDescriptionsurfaceCapabilities(VulkanPhysicalDeviceType in_device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType in_surface) Determine the capabilities ofsurface.surfaceFormats(VulkanPhysicalDeviceType in_device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType in_surface) Determine the preferred formats forsurface.surfaceFromWindow(VulkanInstanceType instance, long window) Treat a raw memory address as if it were a window, and create a WSI-compatible surface from it.surfacePresentModes(VulkanPhysicalDeviceType in_device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType in_surface) Determine the presentation modes forsurface.surfaceSupport(VulkanPhysicalDeviceType in_device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType in_surface) Determine which queue families, if any, support presenting tosurface.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.jcoronado.extensions.khr_surface.api.VulkanExtKHRSurfaceType
name
-
Method Details
-
toString
-
surfaceFromWindow
public VulkanExtKHRSurfaceType.VulkanKHRSurfaceType surfaceFromWindow(VulkanInstanceType instance, long window) throws VulkanException Description copied from interface:VulkanExtKHRSurfaceTypeTreat a raw memory address as if it were a window, and create a WSI-compatible surface from it. The caller is responsible for ensuring that the given memory address really does refer to a window.- Specified by:
surfaceFromWindowin interfaceVulkanExtKHRSurfaceType- Parameters:
instance- The current Vulkan instancewindow- The window address- Returns:
- A surface
- Throws:
VulkanException- On errors
-
surfaceSupport
public List<VulkanQueueFamilyProperties> surfaceSupport(VulkanPhysicalDeviceType in_device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType in_surface) throws VulkanException Description copied from interface:VulkanExtKHRSurfaceTypeDetermine which queue families, if any, support presenting tosurface.- Specified by:
surfaceSupportin interfaceVulkanExtKHRSurfaceType- Parameters:
in_device- The physical devicein_surface- The surface- Returns:
- The set of queue families on the physical device that support presenting to
surface - Throws:
VulkanException- On errors- See Also:
-
surfaceFormats
public List<VulkanSurfaceFormatKHR> surfaceFormats(VulkanPhysicalDeviceType in_device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType in_surface) throws VulkanException Description copied from interface:VulkanExtKHRSurfaceTypeDetermine the preferred formats forsurface.- Specified by:
surfaceFormatsin interfaceVulkanExtKHRSurfaceType- Parameters:
in_device- The physical devicein_surface- The surface- Returns:
- The preferred formats for the given surface
- Throws:
VulkanException- On errors- See Also:
-
surfaceCapabilities
public VulkanSurfaceCapabilitiesKHR surfaceCapabilities(VulkanPhysicalDeviceType in_device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType in_surface) throws VulkanException Description copied from interface:VulkanExtKHRSurfaceTypeDetermine the capabilities ofsurface.- Specified by:
surfaceCapabilitiesin interfaceVulkanExtKHRSurfaceType- Parameters:
in_device- The physical devicein_surface- The surface- Returns:
- The capabilities of the given surface
- Throws:
VulkanException- On errors- See Also:
-
surfacePresentModes
public List<VulkanPresentModeKHR> surfacePresentModes(VulkanPhysicalDeviceType in_device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType in_surface) throws VulkanException Description copied from interface:VulkanExtKHRSurfaceTypeDetermine the presentation modes forsurface.- Specified by:
surfacePresentModesin interfaceVulkanExtKHRSurfaceType- Parameters:
in_device- The physical devicein_surface- The surface- Returns:
- The presentation modes for the given surface
- Throws:
VulkanException- On errors- See Also:
-