VK_KHR_android_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 an ANativeWindow, Android’s native surface type. The ANativeWindow represents the producer endpoint of any buffer queue, regardless of consumer endpoint. Common consumer endpoints for ANativeWindows are the system window compositor, video encoders, and application-specific compositors importing the images through a SurfaceTexture.
VK_KHR_android_surfaceVK_KHR_surface| Modifier and Type | Field and Description |
|---|---|
| public static final String | VK_KHR_ANDROID_SURFACE_EXTENSION_NAME
The extension name. |
| public static final int | VK_KHR_ANDROID_SURFACE_SPEC_VERSION
The extension specification version. |
| public static final int | VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR
Extends |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | nvkCreateAndroidSurfaceKHR(VkInstance instance, long pCreateInfo, long pAllocator, long pSurface)
Unsafe version of: |
| public static int | vkCreateAndroidSurfaceKHR(VkInstance
the instance to associate the surface with. instance, VkAndroidSurfaceCreateInfoKHR a pointer to a pCreateInfo, VkAllocationCallbacks VkAndroidSurfaceCreateInfoKHR structure containing parameters affecting the creation of the surface object.the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation). pAllocator, LongBuffer a pointer to a pSurface)VkSurfaceKHR handle in which the created surface object is returned.Create a |
| public static int | vkCreateAndroidSurfaceKHR(VkInstance instance, VkAndroidSurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface)
Array version of: |
| VK_KHR_ANDROID_SURFACE_EXTENSION_NAME | back to summary |
|---|---|
| public static final String VK_KHR_ANDROID_SURFACE_EXTENSION_NAME The extension name. | |
| VK_KHR_ANDROID_SURFACE_SPEC_VERSION | back to summary |
|---|---|
| public static final int VK_KHR_ANDROID_SURFACE_SPEC_VERSION The extension specification version. | |
| VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR Extends | |
| KHRAndroidSurface | back to summary |
|---|---|
| protected KHRAndroidSurface() | |
| nvkCreateAndroidSurfaceKHR | back to summary |
|---|---|
| public static int nvkCreateAndroidSurfaceKHR(VkInstance instance, long pCreateInfo, long pAllocator, long pSurface) Unsafe version of: | |
| vkCreateAndroidSurfaceKHR | back to summary |
|---|---|
| public static int vkCreateAndroidSurfaceKHR(VkInstance instance, VkAndroidSurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, LongBuffer pSurface) Create a C SpecificationTo create a
DescriptionDuring the lifetime of a surface created using a particular NoteIn particular, only one If successful, On Android, when a swapchain’s Valid Usage (Implicit)
Return Codes
See Also
| |
| vkCreateAndroidSurfaceKHR | back to summary |
|---|---|
| public static int vkCreateAndroidSurfaceKHR(VkInstance instance, VkAndroidSurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface) Array version of:
| |