comparison semiconginev2/old/vulkan/platform/android.nim @ 1218:56781cc0fc7c compiletime-tests

did: renamge main package
author sam <sam@basx.dev>
date Wed, 17 Jul 2024 21:01:37 +0700
parents semicongine/old/vulkan/platform/android.nim@a3eb305bcac2
children
comparison
equal deleted inserted replaced
1217:f819a874058f 1218:56781cc0fc7c
1 type
2 VkAndroidSurfaceCreateInfoKHR* = object
3 sType*: VkStructureType
4 pNext*: pointer
5 flags*: VkAndroidSurfaceCreateFlagsKHR
6 window*: ptr ANativeWindow
7 VkNativeBufferUsage2ANDROID* = object
8 consumer*: uint64
9 producer*: uint64
10 VkNativeBufferANDROID* = object
11 sType*: VkStructureType
12 pNext*: pointer
13 handle*: pointer
14 stride*: cint
15 format*: cint
16 usage*: cint
17 usage2*: VkNativeBufferUsage2ANDROID
18 VkSwapchainImageCreateInfoANDROID* = object
19 sType*: VkStructureType
20 pNext*: pointer
21 usage*: VkSwapchainImageUsageFlagsANDROID
22 VkPhysicalDevicePresentationPropertiesANDROID* = object
23 sType*: VkStructureType
24 pNext*: pointer
25 sharedImage*: VkBool32
26 VkImportAndroidHardwareBufferInfoANDROID* = object
27 sType*: VkStructureType
28 pNext*: pointer
29 buffer*: ptr AHardwareBuffer
30 VkAndroidHardwareBufferUsageANDROID* = object
31 sType*: VkStructureType
32 pNext*: pointer
33 androidHardwareBufferUsage*: uint64
34 VkAndroidHardwareBufferPropertiesANDROID* = object
35 sType*: VkStructureType
36 pNext*: pointer
37 allocationSize*: VkDeviceSize
38 memoryTypeBits*: uint32
39 VkMemoryGetAndroidHardwareBufferInfoANDROID* = object
40 sType*: VkStructureType
41 pNext*: pointer
42 memory*: VkDeviceMemory
43 VkAndroidHardwareBufferFormatPropertiesANDROID* = object
44 sType*: VkStructureType
45 pNext*: pointer
46 format*: VkFormat
47 externalFormat*: uint64
48 formatFeatures*: VkFormatFeatureFlags
49 samplerYcbcrConversionComponents*: VkComponentMapping
50 suggestedYcbcrModel*: VkSamplerYcbcrModelConversion
51 suggestedYcbcrRange*: VkSamplerYcbcrRange
52 suggestedXChromaOffset*: VkChromaLocation
53 suggestedYChromaOffset*: VkChromaLocation
54 VkExternalFormatANDROID* = object
55 sType*: VkStructureType
56 pNext*: pointer
57 externalFormat*: uint64
58 VkAndroidHardwareBufferFormatProperties2ANDROID* = object
59 sType*: VkStructureType
60 pNext*: pointer
61 format*: VkFormat
62 externalFormat*: uint64
63 formatFeatures*: VkFormatFeatureFlags2
64 samplerYcbcrConversionComponents*: VkComponentMapping
65 suggestedYcbcrModel*: VkSamplerYcbcrModelConversion
66 suggestedYcbcrRange*: VkSamplerYcbcrRange
67 suggestedXChromaOffset*: VkChromaLocation
68 suggestedYChromaOffset*: VkChromaLocation
69 # extension VK_ANDROID_external_memory_android_hardware_buffer
70 var
71 vkGetAndroidHardwareBufferPropertiesANDROID*: proc(device: VkDevice, buffer: ptr AHardwareBuffer, pProperties: ptr VkAndroidHardwareBufferPropertiesANDROID): VkResult {.stdcall.}
72 vkGetMemoryAndroidHardwareBufferANDROID*: proc(device: VkDevice, pInfo: ptr VkMemoryGetAndroidHardwareBufferInfoANDROID, pBuffer: ptr ptr AHardwareBuffer): VkResult {.stdcall.}
73 proc loadVK_ANDROID_external_memory_android_hardware_buffer*(instance: VkInstance) =
74 loadVK_VERSION_1_1(instance)
75 loadVK_VERSION_1_1(instance)
76 loadVK_EXT_queue_family_foreign(instance)
77 loadVK_VERSION_1_1(instance)
78 vkGetAndroidHardwareBufferPropertiesANDROID = cast[proc(device: VkDevice, buffer: ptr AHardwareBuffer, pProperties: ptr VkAndroidHardwareBufferPropertiesANDROID): VkResult {.stdcall.}](vkGetInstanceProcAddr(instance, "vkGetAndroidHardwareBufferPropertiesANDROID"))
79 vkGetMemoryAndroidHardwareBufferANDROID = cast[proc(device: VkDevice, pInfo: ptr VkMemoryGetAndroidHardwareBufferInfoANDROID, pBuffer: ptr ptr AHardwareBuffer): VkResult {.stdcall.}](vkGetInstanceProcAddr(instance, "vkGetMemoryAndroidHardwareBufferANDROID"))
80
81 # extension VK_KHR_android_surface
82 var
83 vkCreateAndroidSurfaceKHR*: proc(instance: VkInstance, pCreateInfo: ptr VkAndroidSurfaceCreateInfoKHR, pAllocator: ptr VkAllocationCallbacks, pSurface: ptr VkSurfaceKHR): VkResult {.stdcall.}
84 proc loadVK_KHR_android_surface*(instance: VkInstance) =
85 loadVK_KHR_surface(instance)
86 vkCreateAndroidSurfaceKHR = cast[proc(instance: VkInstance, pCreateInfo: ptr VkAndroidSurfaceCreateInfoKHR, pAllocator: ptr VkAllocationCallbacks, pSurface: ptr VkSurfaceKHR): VkResult {.stdcall.}](vkGetInstanceProcAddr(instance, "vkCreateAndroidSurfaceKHR"))