RetroArch
vulkan_android.h
Go to the documentation of this file.
1 #ifndef VULKAN_ANDROID_H_
2 #define VULKAN_ANDROID_H_ 1
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 /*
9 ** Copyright (c) 2015-2018 The Khronos Group Inc.
10 **
11 ** Licensed under the Apache License, Version 2.0 (the "License");
12 ** you may not use this file except in compliance with the License.
13 ** You may obtain a copy of the License at
14 **
15 ** http://www.apache.org/licenses/LICENSE-2.0
16 **
17 ** Unless required by applicable law or agreed to in writing, software
18 ** distributed under the License is distributed on an "AS IS" BASIS,
19 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 ** See the License for the specific language governing permissions and
21 ** limitations under the License.
22 */
23 
24 /*
25 ** This header is generated from the Khronos Vulkan XML API Registry.
26 **
27 */
28 
29 
30 #define VK_KHR_android_surface 1
31 struct ANativeWindow;
32 
33 #define VK_KHR_ANDROID_SURFACE_SPEC_VERSION 6
34 #define VK_KHR_ANDROID_SURFACE_EXTENSION_NAME "VK_KHR_android_surface"
35 
37 
40  const void* pNext;
42  struct ANativeWindow* window;
44 
45 
46 typedef VkResult (VKAPI_PTR *PFN_vkCreateAndroidSurfaceKHR)(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
47 
48 #ifndef VK_NO_PROTOTYPES
50  VkInstance instance,
51  const VkAndroidSurfaceCreateInfoKHR* pCreateInfo,
52  const VkAllocationCallbacks* pAllocator,
53  VkSurfaceKHR* pSurface);
54 #endif
55 
56 #define VK_ANDROID_external_memory_android_hardware_buffer 1
57 struct AHardwareBuffer;
58 
59 #define VK_ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_SPEC_VERSION 3
60 #define VK_ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_EXTENSION_NAME "VK_ANDROID_external_memory_android_hardware_buffer"
61 
64  void* pNext;
67 
70  void* pNext;
74 
77  void* pNext;
87 
90  const void* pNext;
91  struct AHardwareBuffer* buffer;
93 
96  const void* pNext;
97  VkDeviceMemory memory;
99 
100 typedef struct VkExternalFormatANDROID {
102  void* pNext;
105 
106 
108 typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryAndroidHardwareBufferANDROID)(VkDevice device, const VkMemoryGetAndroidHardwareBufferInfoANDROID* pInfo, struct AHardwareBuffer** pBuffer);
109 
110 #ifndef VK_NO_PROTOTYPES
112  VkDevice device,
113  const struct AHardwareBuffer* buffer,
115 
117  VkDevice device,
119  struct AHardwareBuffer** pBuffer);
120 #endif
121 
122 #ifdef __cplusplus
123 }
124 #endif
125 
126 #endif
VkStructureType sType
Definition: vulkan_android.h:101
VkDeviceSize allocationSize
Definition: vulkan_android.h:71
Definition: vulkan_core.h:1665
VkStructureType sType
Definition: vulkan_android.h:63
GLuint buffer
Definition: glext.h:6555
VkResult(VKAPI_PTR * PFN_vkGetMemoryAndroidHardwareBufferANDROID)(VkDevice device, const VkMemoryGetAndroidHardwareBufferInfoANDROID *pInfo, struct AHardwareBuffer **pBuffer)
Definition: vulkan_android.h:108
VkSamplerYcbcrRange suggestedYcbcrRange
Definition: vulkan_android.h:83
VkComponentMapping samplerYcbcrConversionComponents
Definition: vulkan_android.h:81
const void * pNext
Definition: vulkan_android.h:40
struct VkMemoryGetAndroidHardwareBufferInfoANDROID VkMemoryGetAndroidHardwareBufferInfoANDROID
Definition: vulkan_android.h:62
#define VKAPI_PTR
Definition: vk_platform.h:68
VkAndroidSurfaceCreateFlagsKHR flags
Definition: vulkan_android.h:41
uint32_t memoryTypeBits
Definition: vulkan_android.h:72
const void * pNext
Definition: vulkan_android.h:96
VKAPI_ATTR VkResult VKAPI_CALL vkGetAndroidHardwareBufferPropertiesANDROID(VkDevice device, const struct AHardwareBuffer *buffer, VkAndroidHardwareBufferPropertiesANDROID *pProperties)
Definition: vulkan_android.h:100
struct ANativeWindow * window
Definition: vulkan_android.h:42
VkFormat
Definition: vulkan_core.h:480
Definition: vulkan_android.h:75
VkResult(VKAPI_PTR * PFN_vkGetAndroidHardwareBufferPropertiesANDROID)(VkDevice device, const struct AHardwareBuffer *buffer, VkAndroidHardwareBufferPropertiesANDROID *pProperties)
Definition: vulkan_android.h:107
Definition: vulkan_android.h:38
VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryAndroidHardwareBufferANDROID(VkDevice device, const VkMemoryGetAndroidHardwareBufferInfoANDROID *pInfo, struct AHardwareBuffer **pBuffer)
VkFormatFeatureFlags formatFeatures
Definition: vulkan_android.h:80
Definition: vulkan_core.h:2123
VkDeviceMemory memory
Definition: vulkan_android.h:97
struct VkImportAndroidHardwareBufferInfoANDROID VkImportAndroidHardwareBufferInfoANDROID
VkStructureType sType
Definition: vulkan_android.h:76
struct VkAndroidSurfaceCreateInfoKHR VkAndroidSurfaceCreateInfoKHR
void * pNext
Definition: vulkan_android.h:77
Definition: vulkan_android.h:94
uint32_t VkFlags
Definition: vulkan_core.h:68
Definition: vulkan_android.h:68
VkFormat format
Definition: vulkan_android.h:78
VkChromaLocation
Definition: vulkan_core.h:3720
uint64_t externalFormat
Definition: vulkan_android.h:103
VkStructureType sType
Definition: vulkan_android.h:39
#define VKAPI_CALL
Definition: vk_platform.h:67
VkStructureType sType
Definition: vulkan_android.h:89
void * pNext
Definition: vulkan_android.h:102
VkStructureType sType
Definition: vulkan_android.h:95
uint64_t externalFormat
Definition: vulkan_android.h:79
void * pNext
Definition: vulkan_android.h:70
VkResult
Definition: vulkan_core.h:124
struct VkExternalFormatANDROID VkExternalFormatANDROID
VkSamplerYcbcrModelConversion
Definition: vulkan_core.h:3692
VkSamplerYcbcrRange
Definition: vulkan_core.h:3709
VkResult(VKAPI_PTR * PFN_vkCreateAndroidSurfaceKHR)(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface)
Definition: vulkan_android.h:46
struct AHardwareBuffer * buffer
Definition: vulkan_android.h:91
const void * pNext
Definition: vulkan_android.h:90
VkFlags VkAndroidSurfaceCreateFlagsKHR
Definition: vulkan_android.h:36
VkStructureType
Definition: vulkan_core.h:162
VKAPI_ATTR VkResult VKAPI_CALL vkCreateAndroidSurfaceKHR(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface)
VkChromaLocation suggestedXChromaOffset
Definition: vulkan_android.h:84
struct VkAndroidHardwareBufferPropertiesANDROID VkAndroidHardwareBufferPropertiesANDROID
#define VKAPI_ATTR
Definition: vk_platform.h:66
void * pNext
Definition: vulkan_android.h:64
uint64_t androidHardwareBufferUsage
Definition: vulkan_android.h:65
VkSamplerYcbcrModelConversion suggestedYcbcrModel
Definition: vulkan_android.h:82
Definition: video4linux2.c:51
VkFlags VkFormatFeatureFlags
Definition: vulkan_core.h:1252
struct nk_device device
Definition: nk_common.c:44
VkChromaLocation suggestedYChromaOffset
Definition: vulkan_android.h:85
VkStructureType sType
Definition: vulkan_android.h:69
uint64_t VkDeviceSize
Definition: vulkan_core.h:70
unsigned __int64 uint64_t
Definition: stdint.h:136
unsigned int uint32_t
Definition: stdint.h:126
struct VkAndroidHardwareBufferUsageANDROID VkAndroidHardwareBufferUsageANDROID
Definition: vulkan_android.h:88
struct VkAndroidHardwareBufferFormatPropertiesANDROID VkAndroidHardwareBufferFormatPropertiesANDROID