Interface VulkanExtKHRSurfaceType
- All Superinterfaces:
VulkanExtensionType
- All Known Implementing Classes:
VulkanLWJGLExtKHRSurface
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAn abstraction over a native platform surface or window object. -
Method Summary
Modifier and TypeMethodDescriptiondefault Stringname()surfaceCapabilities(VulkanPhysicalDeviceType device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType surface) Determine the capabilities ofsurface.surfaceFormats(VulkanPhysicalDeviceType device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType 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 device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType surface) Determine the presentation modes forsurface.surfaceSupport(VulkanPhysicalDeviceType device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType surface) Determine which queue families, if any, support presenting tosurface.
-
Method Details
-
surfaceFromWindow
VulkanExtKHRSurfaceType.VulkanKHRSurfaceType surfaceFromWindow(VulkanInstanceType instance, long window) throws VulkanException 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.- Parameters:
instance- The current Vulkan instancewindow- The window address- Returns:
- A surface
- Throws:
VulkanException- On errors
-
name
- Specified by:
namein interfaceVulkanExtensionType- Returns:
- The name of the extension (such as "VK_KHR_Surface")
-
surfaceSupport
List<VulkanQueueFamilyProperties> surfaceSupport(VulkanPhysicalDeviceType device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType surface) throws VulkanException Determine which queue families, if any, support presenting tosurface.- Parameters:
device- The physical devicesurface- The surface- Returns:
- The set of queue families on the physical device that support presenting to
surface - Throws:
VulkanException- On errors- See Also:
-
surfaceFormats
List<VulkanSurfaceFormatKHR> surfaceFormats(VulkanPhysicalDeviceType device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType surface) throws VulkanException Determine the preferred formats forsurface.- Parameters:
device- The physical devicesurface- The surface- Returns:
- The preferred formats for the given surface
- Throws:
VulkanException- On errors- See Also:
-
surfaceCapabilities
VulkanSurfaceCapabilitiesKHR surfaceCapabilities(VulkanPhysicalDeviceType device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType surface) throws VulkanException Determine the capabilities ofsurface.- Parameters:
device- The physical devicesurface- The surface- Returns:
- The capabilities of the given surface
- Throws:
VulkanException- On errors- See Also:
-
surfacePresentModes
List<VulkanPresentModeKHR> surfacePresentModes(VulkanPhysicalDeviceType device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType surface) throws VulkanException Determine the presentation modes forsurface.- Parameters:
device- The physical devicesurface- The surface- Returns:
- The presentation modes for the given surface
- Throws:
VulkanException- On errors- See Also:
-