public class AWTVK extends Object
To use the surface, VK_KHR_SURFACE_EXTENSION_NAME
and getSurfaceExtensionName() must be enabled extensions.
| Constructor and Description |
|---|
AWTVK() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkSupport(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
int queueFamilyIndex)
Checks if the physical device supports presenting using
the provided queue family index.
|
static long |
create(Canvas canvas,
org.lwjgl.vulkan.VkInstance instance)
Uses the provided canvas to create a Vulkan surface to draw on.
|
static String |
getSurfaceExtensionName()
Gets the required instance extension for the particular platform.
|
public static String getSurfaceExtensionName()
Note: VK_KHR_SURFACE_EXTENSION_NAME
must also be enabled when creating the instance.
public static boolean checkSupport(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
int queueFamilyIndex)
This does not guarantee compatibility with any given surface, but rather determines if the platform supports presentation at all.
physicalDevice - the physical device to checkqueueFamilyIndex - the index of the queue family to testpublic static long create(Canvas canvas, org.lwjgl.vulkan.VkInstance instance) throws AWTException
canvas - canvas to render ontoinstance - vulkan instanceAWTException - if the surface creation failsCopyright © 2016–2024 LWJGLX. All rights reserved.