Package org.lwjgl.vulkan
Class KHRWin32Surface
- java.lang.Object
-
- org.lwjgl.vulkan.KHRWin32Surface
-
public class KHRWin32Surface extends java.lang.Object
TheVK_KHR_win32_surface
extension is an instance extension. It provides a mechanism to create aVkSurfaceKHR
object (defined by theVK_KHR_surface
extension) that refers to a Win32HWND
, as well as a query to determine support for rendering to the windows desktop.
-
-
Field Summary
Fields 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
VkStructureType
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static int
vkCreateWin32SurfaceKHR(VkInstance instance, VkWin32SurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface)
Array version of:CreateWin32SurfaceKHR
static int
vkCreateWin32SurfaceKHR(VkInstance instance, VkWin32SurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, java.nio.LongBuffer pSurface)
Creates aVkSurfaceKHR
object for a Win32 window.static int
vkGetPhysicalDeviceWin32PresentationSupportKHR(VkPhysicalDevice physicalDevice, int queueFamilyIndex)
Determines whether a queue family of a physical device supports presentation to the Microsoft Windows desktop.
-
-
-
Field Detail
-
VK_KHR_WIN32_SURFACE_SPEC_VERSION
public static final int VK_KHR_WIN32_SURFACE_SPEC_VERSION
The extension specification version.- See Also:
- Constant Field Values
-
VK_KHR_WIN32_SURFACE_EXTENSION_NAME
public static final java.lang.String VK_KHR_WIN32_SURFACE_EXTENSION_NAME
The extension name.- See Also:
- Constant Field Values
-
VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR
public static final int VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR
VkStructureType- See Also:
- Constant Field Values
-
-
Method Detail
-
vkCreateWin32SurfaceKHR
public static int vkCreateWin32SurfaceKHR(VkInstance instance, VkWin32SurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, java.nio.LongBuffer pSurface)
Creates aVkSurfaceKHR
object for a Win32 window.Valid Usage
instance
must be a validVkInstance
handlepCreateInfo
must be a pointer to a validVkWin32SurfaceCreateInfoKHR
structure- If
pAllocator
is notNULL
,pAllocator
must be a pointer to a validVkAllocationCallbacks
structure pSurface
must be a pointer to aVkSurfaceKHR
handle
With Win32,
minImageExtent
,maxImageExtent
, andcurrentExtent
are the window size. Therefore, a swapchain’simageExtent
must match the window’s size.- Parameters:
instance
- the instance to associate the surface withpCreateInfo
- a pointer to an instance of theVkWin32SurfaceCreateInfoKHR
structure containing parameters affecting the creation of the surface objectpAllocator
- controls host memory allocationpSurface
- points to aVkSurfaceKHR
handle in which the created surface object is returned
-
vkGetPhysicalDeviceWin32PresentationSupportKHR
public static int vkGetPhysicalDeviceWin32PresentationSupportKHR(VkPhysicalDevice physicalDevice, int queueFamilyIndex)
Determines whether a queue family of a physical device supports presentation to the Microsoft Windows desktop.This platform-specific function can be called prior to creating a surface.
Valid Usage
physicalDevice
must be a validVkPhysicalDevice
handlequeueFamilyIndex
must be less thanpQueueFamilyPropertyCount
returned byGetPhysicalDeviceQueueFamilyProperties
for the givenphysicalDevice
- Parameters:
physicalDevice
- the physical devicequeueFamilyIndex
- the queue family index
-
vkCreateWin32SurfaceKHR
public static int vkCreateWin32SurfaceKHR(VkInstance instance, VkWin32SurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface)
Array version of:CreateWin32SurfaceKHR
-
-