- java.lang.Object
-
- com.io7m.jcoronado.lwjgl.VulkanLWJGLExtKHRSurface
-
- All Implemented Interfaces:
VulkanExtensionType
,VulkanExtKHRSurfaceType
public final class VulkanLWJGLExtKHRSurface extends java.lang.Object implements VulkanExtKHRSurfaceType
Access to theVK_KHR_surface
extension.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.io7m.jcoronado.extensions.khr_surface.api.VulkanExtKHRSurfaceType
VulkanExtKHRSurfaceType.VulkanKHRSurfaceType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VulkanSurfaceCapabilitiesKHR
surfaceCapabilities(VulkanPhysicalDeviceType in_device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType in_surface)
Determine the capabilities ofsurface
.java.util.List<VulkanSurfaceFormatKHR>
surfaceFormats(VulkanPhysicalDeviceType in_device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType in_surface)
Determine the preferred formats forsurface
.VulkanExtKHRSurfaceType.VulkanKHRSurfaceType
surfaceFromWindow(VulkanInstanceType instance, long window)
Treat a raw memory address as if it were a window, and create a WSI-compatible surface from it.java.util.List<VulkanPresentModeKHR>
surfacePresentModes(VulkanPhysicalDeviceType in_device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType in_surface)
Determine the presentation modes forsurface
.java.util.List<VulkanQueueFamilyProperties>
surfaceSupport(VulkanPhysicalDeviceType in_device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType in_surface)
Determine which queue families, if any, support presenting tosurface
.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.io7m.jcoronado.extensions.khr_surface.api.VulkanExtKHRSurfaceType
name
-
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
surfaceFromWindow
public VulkanExtKHRSurfaceType.VulkanKHRSurfaceType surfaceFromWindow(VulkanInstanceType instance, long window) throws VulkanException
Description copied from interface:VulkanExtKHRSurfaceType
Treat 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:
surfaceFromWindow
in interfaceVulkanExtKHRSurfaceType
- Parameters:
instance
- The current Vulkan instancewindow
- The window address- Returns:
- A surface
- Throws:
VulkanException
- On errors
-
surfaceSupport
public java.util.List<VulkanQueueFamilyProperties> surfaceSupport(VulkanPhysicalDeviceType in_device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType in_surface) throws VulkanException
Description copied from interface:VulkanExtKHRSurfaceType
Determine which queue families, if any, support presenting tosurface
.- Specified by:
surfaceSupport
in 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:
- "vkGetPhysicalDeviceSurfaceSupportKHR"
-
surfaceFormats
public java.util.List<VulkanSurfaceFormatKHR> surfaceFormats(VulkanPhysicalDeviceType in_device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType in_surface) throws VulkanException
Description copied from interface:VulkanExtKHRSurfaceType
Determine the preferred formats forsurface
.- Specified by:
surfaceFormats
in interfaceVulkanExtKHRSurfaceType
- Parameters:
in_device
- The physical devicein_surface
- The surface- Returns:
- The preferred formats for the given surface
- Throws:
VulkanException
- On errors- See Also:
- "vkGetPhysicalDeviceSurfaceFormatsKHR"
-
surfaceCapabilities
public VulkanSurfaceCapabilitiesKHR surfaceCapabilities(VulkanPhysicalDeviceType in_device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType in_surface) throws VulkanException
Description copied from interface:VulkanExtKHRSurfaceType
Determine the capabilities ofsurface
.- Specified by:
surfaceCapabilities
in interfaceVulkanExtKHRSurfaceType
- Parameters:
in_device
- The physical devicein_surface
- The surface- Returns:
- The capabilities of the given surface
- Throws:
VulkanException
- On errors- See Also:
- "vkGetPhysicalDeviceSurfaceCapabilitiesKHR"
-
surfacePresentModes
public java.util.List<VulkanPresentModeKHR> surfacePresentModes(VulkanPhysicalDeviceType in_device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType in_surface) throws VulkanException
Description copied from interface:VulkanExtKHRSurfaceType
Determine the presentation modes forsurface
.- Specified by:
surfacePresentModes
in interfaceVulkanExtKHRSurfaceType
- Parameters:
in_device
- The physical devicein_surface
- The surface- Returns:
- The presentation modes for the given surface
- Throws:
VulkanException
- On errors- See Also:
- "vkGetPhysicalDeviceSurfacePresentModesKHR"
-
-