Class VFakeExtKHRSurface
java.lang.Object
com.io7m.jcoronado.fake.VFakeExtKHRSurface
- All Implemented Interfaces:
VulkanExtensionType, VulkanExtKHRSurfaceType
The surface extension.
-
Nested Class Summary
Nested classes/interfaces inherited from interface VulkanExtKHRSurfaceType
VulkanExtKHRSurfaceType.VulkanKHRSurfaceType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VulkanExtensionPropertiesvoidvoidsetSurfaceFormats(List<VulkanSurfaceFormatKHR> newFormats) voidsetSurfacePresentModes(List<VulkanPresentModeKHR> newModes) voidsetSurfaceSupport(List<VulkanQueueFamilyProperties> newSupport) 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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface VulkanExtKHRSurfaceType
extraNames, name
-
Constructor Details
-
VFakeExtKHRSurface
public VFakeExtKHRSurface()Construct an extension.
-
-
Method Details
-
properties
- Returns:
- The extension properties
-
setSurfaceCapabilities
- Parameters:
newCaps- The new caps
-
setSurfaceFormats
- Parameters:
newFormats- The new formats
-
setSurfacePresentModes
- Parameters:
newModes- The new modes
-
setSurfaceSupport
- Parameters:
newSupport- The new support
-
surfaceFromWindow
public VulkanExtKHRSurfaceType.VulkanKHRSurfaceType surfaceFromWindow(VulkanInstanceType instance, long window) 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
-
surfaceSupport
public List<VulkanQueueFamilyProperties> surfaceSupport(VulkanPhysicalDeviceType device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType surface) Description copied from interface:VulkanExtKHRSurfaceTypeDetermine which queue families, if any, support presenting tosurface.- Specified by:
surfaceSupportin interfaceVulkanExtKHRSurfaceType- Parameters:
device- The physical devicesurface- The surface- Returns:
- The set of queue families on the physical device that support
presenting to
surface - See Also:
-
surfaceFormats
public List<VulkanSurfaceFormatKHR> surfaceFormats(VulkanPhysicalDeviceType device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType surface) Description copied from interface:VulkanExtKHRSurfaceTypeDetermine the preferred formats forsurface. The returned list is guaranteed to be non-empty.- Specified by:
surfaceFormatsin interfaceVulkanExtKHRSurfaceType- Parameters:
device- The physical devicesurface- The surface- Returns:
- The preferred formats for the given surface
- See Also:
-
surfaceCapabilities
public VulkanSurfaceCapabilitiesKHR surfaceCapabilities(VulkanPhysicalDeviceType device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType surface) Description copied from interface:VulkanExtKHRSurfaceTypeDetermine the capabilities ofsurface.- Specified by:
surfaceCapabilitiesin interfaceVulkanExtKHRSurfaceType- Parameters:
device- The physical devicesurface- The surface- Returns:
- The capabilities of the given surface
- See Also:
-
surfacePresentModes
public List<VulkanPresentModeKHR> surfacePresentModes(VulkanPhysicalDeviceType device, VulkanExtKHRSurfaceType.VulkanKHRSurfaceType surface) Description copied from interface:VulkanExtKHRSurfaceTypeDetermine the presentation modes forsurface.- Specified by:
surfacePresentModesin interfaceVulkanExtKHRSurfaceType- Parameters:
device- The physical devicesurface- The surface- Returns:
- The presentation modes for the given surface
- See Also:
-