public class KHRWin32Surface
extends java.lang.Object
VK_KHR_win32_surface extension is an instance extension. It provides a mechanism to create a VkSurfaceKHR object (defined by the VK_KHR_surface extension) that refers to a Win32 HWND, as well as a query to determine support for rendering to the windows desktop.
VK_KHR_win32_surfaceVK_KHR_surface| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VK_KHR_WIN32_SURFACE_EXTENSION_NAME
The extension name.
|
static int |
VK_KHR_WIN32_SURFACE_SPEC_VERSION
The extension specification version.
|
static int |
VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR
Extends
VkStructureType. |
| Modifier and Type | Method and Description |
|---|---|
static int |
nvkCreateWin32SurfaceKHR(org.lwjgl.vulkan.VkInstance instance,
long pCreateInfo,
long pAllocator,
long pSurface)
Unsafe version of:
CreateWin32SurfaceKHR |
static int |
vkCreateWin32SurfaceKHR(org.lwjgl.vulkan.VkInstance instance,
VkWin32SurfaceCreateInfoKHR pCreateInfo,
VkAllocationCallbacks pAllocator,
long[] pSurface)
Array version of:
CreateWin32SurfaceKHR |
static int |
vkCreateWin32SurfaceKHR(org.lwjgl.vulkan.VkInstance instance,
VkWin32SurfaceCreateInfoKHR pCreateInfo,
VkAllocationCallbacks pAllocator,
java.nio.LongBuffer pSurface)
Create a
VkSurfaceKHR object for an Win32 native window. |
static boolean |
vkGetPhysicalDeviceWin32PresentationSupportKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
int queueFamilyIndex)
query queue family support for presentation on a Win32 display.
|
public static final int VK_KHR_WIN32_SURFACE_SPEC_VERSION
public static final java.lang.String VK_KHR_WIN32_SURFACE_EXTENSION_NAME
public static final int VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR
VkStructureType.public static int nvkCreateWin32SurfaceKHR(org.lwjgl.vulkan.VkInstance instance,
long pCreateInfo,
long pAllocator,
long pSurface)
CreateWin32SurfaceKHRpublic static int vkCreateWin32SurfaceKHR(org.lwjgl.vulkan.VkInstance instance,
VkWin32SurfaceCreateInfoKHR pCreateInfo,
@Nullable
VkAllocationCallbacks pAllocator,
java.nio.LongBuffer pSurface)
VkSurfaceKHR object for an Win32 native window.
To create a VkSurfaceKHR object for a Win32 window, call:
VkResult vkCreateWin32SurfaceKHR(
VkInstance instance,
const VkWin32SurfaceCreateInfoKHR* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkSurfaceKHR* pSurface);
instance must be a valid VkInstance handlepCreateInfo must be a valid pointer to a valid VkWin32SurfaceCreateInfoKHR structurepAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structurepSurface must be a valid pointer to a VkSurfaceKHR handleinstance - the instance to associate the surface with.pCreateInfo - a pointer to a VkWin32SurfaceCreateInfoKHR structure containing parameters affecting the creation of the surface object.pAllocator - the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation).pSurface - a pointer to a VkSurfaceKHR handle in which the created surface object is returned.public static boolean vkGetPhysicalDeviceWin32PresentationSupportKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
int queueFamilyIndex)
To determine whether a queue family of a physical device supports presentation to the Microsoft Windows desktop, call:
VkBool32 vkGetPhysicalDeviceWin32PresentationSupportKHR(
VkPhysicalDevice physicalDevice,
uint32_t queueFamilyIndex);
This platform-specific function can be called prior to creating a surface.
queueFamilyIndex must be less than pQueueFamilyPropertyCount returned by vkGetPhysicalDeviceQueueFamilyProperties for the given physicalDevicephysicalDevice must be a valid VkPhysicalDevice handlephysicalDevice - the physical device.queueFamilyIndex - the queue family index.public static int vkCreateWin32SurfaceKHR(org.lwjgl.vulkan.VkInstance instance,
VkWin32SurfaceCreateInfoKHR pCreateInfo,
@Nullable
VkAllocationCallbacks pAllocator,
long[] pSurface)
CreateWin32SurfaceKHRCopyright LWJGL. All Rights Reserved. License terms.