1 #ifndef VULKAN_ANDROID_H_ 2 #define VULKAN_ANDROID_H_ 1 30 #define VK_KHR_android_surface 1 33 #define VK_KHR_ANDROID_SURFACE_SPEC_VERSION 6 34 #define VK_KHR_ANDROID_SURFACE_EXTENSION_NAME "VK_KHR_android_surface" 48 #ifndef VK_NO_PROTOTYPES 53 VkSurfaceKHR* pSurface);
56 #define VK_ANDROID_external_memory_android_hardware_buffer 1 57 struct AHardwareBuffer;
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" 110 #ifndef VK_NO_PROTOTYPES 113 const struct AHardwareBuffer*
buffer,
119 struct AHardwareBuffer** pBuffer);
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