1*61046927SAndroid Build Coastguard Worker #ifndef VULKAN_SCREEN_H_ 2*61046927SAndroid Build Coastguard Worker #define VULKAN_SCREEN_H_ 1 3*61046927SAndroid Build Coastguard Worker 4*61046927SAndroid Build Coastguard Worker /* 5*61046927SAndroid Build Coastguard Worker ** Copyright 2015-2024 The Khronos Group Inc. 6*61046927SAndroid Build Coastguard Worker ** 7*61046927SAndroid Build Coastguard Worker ** SPDX-License-Identifier: Apache-2.0 8*61046927SAndroid Build Coastguard Worker */ 9*61046927SAndroid Build Coastguard Worker 10*61046927SAndroid Build Coastguard Worker /* 11*61046927SAndroid Build Coastguard Worker ** This header is generated from the Khronos Vulkan XML API Registry. 12*61046927SAndroid Build Coastguard Worker ** 13*61046927SAndroid Build Coastguard Worker */ 14*61046927SAndroid Build Coastguard Worker 15*61046927SAndroid Build Coastguard Worker 16*61046927SAndroid Build Coastguard Worker #ifdef __cplusplus 17*61046927SAndroid Build Coastguard Worker extern "C" { 18*61046927SAndroid Build Coastguard Worker #endif 19*61046927SAndroid Build Coastguard Worker 20*61046927SAndroid Build Coastguard Worker 21*61046927SAndroid Build Coastguard Worker 22*61046927SAndroid Build Coastguard Worker // VK_QNX_screen_surface is a preprocessor guard. Do not pass it to API calls. 23*61046927SAndroid Build Coastguard Worker #define VK_QNX_screen_surface 1 24*61046927SAndroid Build Coastguard Worker #define VK_QNX_SCREEN_SURFACE_SPEC_VERSION 1 25*61046927SAndroid Build Coastguard Worker #define VK_QNX_SCREEN_SURFACE_EXTENSION_NAME "VK_QNX_screen_surface" 26*61046927SAndroid Build Coastguard Worker typedef VkFlags VkScreenSurfaceCreateFlagsQNX; 27*61046927SAndroid Build Coastguard Worker typedef struct VkScreenSurfaceCreateInfoQNX { 28*61046927SAndroid Build Coastguard Worker VkStructureType sType; 29*61046927SAndroid Build Coastguard Worker const void* pNext; 30*61046927SAndroid Build Coastguard Worker VkScreenSurfaceCreateFlagsQNX flags; 31*61046927SAndroid Build Coastguard Worker struct _screen_context* context; 32*61046927SAndroid Build Coastguard Worker struct _screen_window* window; 33*61046927SAndroid Build Coastguard Worker } VkScreenSurfaceCreateInfoQNX; 34*61046927SAndroid Build Coastguard Worker 35*61046927SAndroid Build Coastguard Worker typedef VkResult (VKAPI_PTR *PFN_vkCreateScreenSurfaceQNX)(VkInstance instance, const VkScreenSurfaceCreateInfoQNX* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); 36*61046927SAndroid Build Coastguard Worker typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceScreenPresentationSupportQNX)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, struct _screen_window* window); 37*61046927SAndroid Build Coastguard Worker 38*61046927SAndroid Build Coastguard Worker #ifndef VK_NO_PROTOTYPES 39*61046927SAndroid Build Coastguard Worker VKAPI_ATTR VkResult VKAPI_CALL vkCreateScreenSurfaceQNX( 40*61046927SAndroid Build Coastguard Worker VkInstance instance, 41*61046927SAndroid Build Coastguard Worker const VkScreenSurfaceCreateInfoQNX* pCreateInfo, 42*61046927SAndroid Build Coastguard Worker const VkAllocationCallbacks* pAllocator, 43*61046927SAndroid Build Coastguard Worker VkSurfaceKHR* pSurface); 44*61046927SAndroid Build Coastguard Worker 45*61046927SAndroid Build Coastguard Worker VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceScreenPresentationSupportQNX( 46*61046927SAndroid Build Coastguard Worker VkPhysicalDevice physicalDevice, 47*61046927SAndroid Build Coastguard Worker uint32_t queueFamilyIndex, 48*61046927SAndroid Build Coastguard Worker struct _screen_window* window); 49*61046927SAndroid Build Coastguard Worker #endif 50*61046927SAndroid Build Coastguard Worker 51*61046927SAndroid Build Coastguard Worker 52*61046927SAndroid Build Coastguard Worker // VK_QNX_external_memory_screen_buffer is a preprocessor guard. Do not pass it to API calls. 53*61046927SAndroid Build Coastguard Worker #define VK_QNX_external_memory_screen_buffer 1 54*61046927SAndroid Build Coastguard Worker #define VK_QNX_EXTERNAL_MEMORY_SCREEN_BUFFER_SPEC_VERSION 1 55*61046927SAndroid Build Coastguard Worker #define VK_QNX_EXTERNAL_MEMORY_SCREEN_BUFFER_EXTENSION_NAME "VK_QNX_external_memory_screen_buffer" 56*61046927SAndroid Build Coastguard Worker typedef struct VkScreenBufferPropertiesQNX { 57*61046927SAndroid Build Coastguard Worker VkStructureType sType; 58*61046927SAndroid Build Coastguard Worker void* pNext; 59*61046927SAndroid Build Coastguard Worker VkDeviceSize allocationSize; 60*61046927SAndroid Build Coastguard Worker uint32_t memoryTypeBits; 61*61046927SAndroid Build Coastguard Worker } VkScreenBufferPropertiesQNX; 62*61046927SAndroid Build Coastguard Worker 63*61046927SAndroid Build Coastguard Worker typedef struct VkScreenBufferFormatPropertiesQNX { 64*61046927SAndroid Build Coastguard Worker VkStructureType sType; 65*61046927SAndroid Build Coastguard Worker void* pNext; 66*61046927SAndroid Build Coastguard Worker VkFormat format; 67*61046927SAndroid Build Coastguard Worker uint64_t externalFormat; 68*61046927SAndroid Build Coastguard Worker uint64_t screenUsage; 69*61046927SAndroid Build Coastguard Worker VkFormatFeatureFlags formatFeatures; 70*61046927SAndroid Build Coastguard Worker VkComponentMapping samplerYcbcrConversionComponents; 71*61046927SAndroid Build Coastguard Worker VkSamplerYcbcrModelConversion suggestedYcbcrModel; 72*61046927SAndroid Build Coastguard Worker VkSamplerYcbcrRange suggestedYcbcrRange; 73*61046927SAndroid Build Coastguard Worker VkChromaLocation suggestedXChromaOffset; 74*61046927SAndroid Build Coastguard Worker VkChromaLocation suggestedYChromaOffset; 75*61046927SAndroid Build Coastguard Worker } VkScreenBufferFormatPropertiesQNX; 76*61046927SAndroid Build Coastguard Worker 77*61046927SAndroid Build Coastguard Worker typedef struct VkImportScreenBufferInfoQNX { 78*61046927SAndroid Build Coastguard Worker VkStructureType sType; 79*61046927SAndroid Build Coastguard Worker const void* pNext; 80*61046927SAndroid Build Coastguard Worker struct _screen_buffer* buffer; 81*61046927SAndroid Build Coastguard Worker } VkImportScreenBufferInfoQNX; 82*61046927SAndroid Build Coastguard Worker 83*61046927SAndroid Build Coastguard Worker typedef struct VkExternalFormatQNX { 84*61046927SAndroid Build Coastguard Worker VkStructureType sType; 85*61046927SAndroid Build Coastguard Worker void* pNext; 86*61046927SAndroid Build Coastguard Worker uint64_t externalFormat; 87*61046927SAndroid Build Coastguard Worker } VkExternalFormatQNX; 88*61046927SAndroid Build Coastguard Worker 89*61046927SAndroid Build Coastguard Worker typedef struct VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX { 90*61046927SAndroid Build Coastguard Worker VkStructureType sType; 91*61046927SAndroid Build Coastguard Worker void* pNext; 92*61046927SAndroid Build Coastguard Worker VkBool32 screenBufferImport; 93*61046927SAndroid Build Coastguard Worker } VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX; 94*61046927SAndroid Build Coastguard Worker 95*61046927SAndroid Build Coastguard Worker typedef VkResult (VKAPI_PTR *PFN_vkGetScreenBufferPropertiesQNX)(VkDevice device, const struct _screen_buffer* buffer, VkScreenBufferPropertiesQNX* pProperties); 96*61046927SAndroid Build Coastguard Worker 97*61046927SAndroid Build Coastguard Worker #ifndef VK_NO_PROTOTYPES 98*61046927SAndroid Build Coastguard Worker VKAPI_ATTR VkResult VKAPI_CALL vkGetScreenBufferPropertiesQNX( 99*61046927SAndroid Build Coastguard Worker VkDevice device, 100*61046927SAndroid Build Coastguard Worker const struct _screen_buffer* buffer, 101*61046927SAndroid Build Coastguard Worker VkScreenBufferPropertiesQNX* pProperties); 102*61046927SAndroid Build Coastguard Worker #endif 103*61046927SAndroid Build Coastguard Worker 104*61046927SAndroid Build Coastguard Worker #ifdef __cplusplus 105*61046927SAndroid Build Coastguard Worker } 106*61046927SAndroid Build Coastguard Worker #endif 107*61046927SAndroid Build Coastguard Worker 108*61046927SAndroid Build Coastguard Worker #endif 109