Package org.lwjgl.vulkan
Class KHRWin32Surface
- java.lang.Object
-
- org.lwjgl.vulkan.KHRWin32Surface
-
public class KHRWin32Surface extends java.lang.ObjectTheVK_KHR_win32_surfaceextension is an instance extension. It provides a mechanism to create aVkSurfaceKHRobject (defined by theVK_KHR_surfaceextension) 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.StringVK_KHR_WIN32_SURFACE_EXTENSION_NAMEThe extension name.static intVK_KHR_WIN32_SURFACE_SPEC_VERSIONThe extension specification version.static intVK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHRVkStructureType
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static intvkCreateWin32SurfaceKHR(VkInstance instance, VkWin32SurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface)Array version of:CreateWin32SurfaceKHRstatic intvkCreateWin32SurfaceKHR(VkInstance instance, VkWin32SurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, java.nio.LongBuffer pSurface)Creates aVkSurfaceKHRobject for a Win32 window.static intvkGetPhysicalDeviceWin32PresentationSupportKHR(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 aVkSurfaceKHRobject for a Win32 window.Valid Usage
instancemust be a validVkInstancehandlepCreateInfomust be a pointer to a validVkWin32SurfaceCreateInfoKHRstructure- If
pAllocatoris notNULL,pAllocatormust be a pointer to a validVkAllocationCallbacksstructure pSurfacemust be a pointer to aVkSurfaceKHRhandle
With Win32,
minImageExtent,maxImageExtent, andcurrentExtentare the window size. Therefore, a swapchain’simageExtentmust match the window’s size.- Parameters:
instance- the instance to associate the surface withpCreateInfo- a pointer to an instance of theVkWin32SurfaceCreateInfoKHRstructure containing parameters affecting the creation of the surface objectpAllocator- controls host memory allocationpSurface- points to aVkSurfaceKHRhandle 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
physicalDevicemust be a validVkPhysicalDevicehandlequeueFamilyIndexmust be less thanpQueueFamilyPropertyCountreturned byGetPhysicalDeviceQueueFamilyPropertiesfor 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
-
-