Interface VulkanExtKHRSurfaceType
-
- All Superinterfaces:
VulkanExtensionType
- All Known Implementing Classes:
VulkanLWJGLExtKHRSurface
public interface VulkanExtKHRSurfaceType extends VulkanExtensionType
- See Also:
- "VK_KHR_surface"
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
VulkanExtKHRSurfaceType.VulkanKHRSurfaceType
An abstraction over a native platform surface or window object.
-
Method Summary
-
-
-
Method Detail
-
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
default java.lang.String name()
- Specified by:
name
in interfaceVulkanExtensionType
- Returns:
- The name of the extension (such as "VK_KHR_Surface")
-
surfaceSupport
java.util.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:
- "vkGetPhysicalDeviceSurfaceSupportKHR"
-
surfaceFormats
java.util.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:
- "vkGetPhysicalDeviceSurfaceFormatsKHR"
-
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:
- "vkGetPhysicalDeviceSurfaceCapabilitiesKHR"
-
surfacePresentModes
java.util.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:
- "vkGetPhysicalDeviceSurfacePresentModesKHR"
-
-