comparison semiconginev2/old/vulkan/platform/fuchsia.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/fuchsia.nim@a3eb305bcac2
children
comparison
equal deleted inserted replaced
1217:f819a874058f 1218:56781cc0fc7c
1 type
2 VkImagePipeSurfaceCreateInfoFUCHSIA* = object
3 sType*: VkStructureType
4 pNext*: pointer
5 flags*: VkImagePipeSurfaceCreateFlagsFUCHSIA
6 imagePipeHandle*: zx_handle_t
7 VkImportMemoryZirconHandleInfoFUCHSIA* = object
8 sType*: VkStructureType
9 pNext*: pointer
10 handleType*: VkExternalMemoryHandleTypeFlagBits
11 handle*: zx_handle_t
12 VkMemoryZirconHandlePropertiesFUCHSIA* = object
13 sType*: VkStructureType
14 pNext*: pointer
15 memoryTypeBits*: uint32
16 VkMemoryGetZirconHandleInfoFUCHSIA* = object
17 sType*: VkStructureType
18 pNext*: pointer
19 memory*: VkDeviceMemory
20 handleType*: VkExternalMemoryHandleTypeFlagBits
21 VkImportSemaphoreZirconHandleInfoFUCHSIA* = object
22 sType*: VkStructureType
23 pNext*: pointer
24 semaphore*: VkSemaphore
25 flags*: VkSemaphoreImportFlags
26 handleType*: VkExternalSemaphoreHandleTypeFlagBits
27 zirconHandle*: zx_handle_t
28 VkSemaphoreGetZirconHandleInfoFUCHSIA* = object
29 sType*: VkStructureType
30 pNext*: pointer
31 semaphore*: VkSemaphore
32 handleType*: VkExternalSemaphoreHandleTypeFlagBits
33 VkImportMemoryBufferCollectionFUCHSIA* = object
34 sType*: VkStructureType
35 pNext*: pointer
36 collection*: VkBufferCollectionFUCHSIA
37 index*: uint32
38 VkBufferCollectionImageCreateInfoFUCHSIA* = object
39 sType*: VkStructureType
40 pNext*: pointer
41 collection*: VkBufferCollectionFUCHSIA
42 index*: uint32
43 VkBufferCollectionBufferCreateInfoFUCHSIA* = object
44 sType*: VkStructureType
45 pNext*: pointer
46 collection*: VkBufferCollectionFUCHSIA
47 index*: uint32
48 VkBufferCollectionCreateInfoFUCHSIA* = object
49 sType*: VkStructureType
50 pNext*: pointer
51 collectionToken*: zx_handle_t
52 VkBufferCollectionPropertiesFUCHSIA* = object
53 sType*: VkStructureType
54 pNext*: pointer
55 memoryTypeBits*: uint32
56 bufferCount*: uint32
57 createInfoIndex*: uint32
58 sysmemPixelFormat*: uint64
59 formatFeatures*: VkFormatFeatureFlags
60 sysmemColorSpaceIndex*: VkSysmemColorSpaceFUCHSIA
61 samplerYcbcrConversionComponents*: VkComponentMapping
62 suggestedYcbcrModel*: VkSamplerYcbcrModelConversion
63 suggestedYcbcrRange*: VkSamplerYcbcrRange
64 suggestedXChromaOffset*: VkChromaLocation
65 suggestedYChromaOffset*: VkChromaLocation
66 VkBufferConstraintsInfoFUCHSIA* = object
67 sType*: VkStructureType
68 pNext*: pointer
69 createInfo*: VkBufferCreateInfo
70 requiredFormatFeatures*: VkFormatFeatureFlags
71 bufferCollectionConstraints*: VkBufferCollectionConstraintsInfoFUCHSIA
72 VkSysmemColorSpaceFUCHSIA* = object
73 sType*: VkStructureType
74 pNext*: pointer
75 colorSpace*: uint32
76 VkImageFormatConstraintsInfoFUCHSIA* = object
77 sType*: VkStructureType
78 pNext*: pointer
79 imageCreateInfo*: VkImageCreateInfo
80 requiredFormatFeatures*: VkFormatFeatureFlags
81 flags*: VkImageFormatConstraintsFlagsFUCHSIA
82 sysmemPixelFormat*: uint64
83 colorSpaceCount*: uint32
84 pColorSpaces*: ptr VkSysmemColorSpaceFUCHSIA
85 VkImageConstraintsInfoFUCHSIA* = object
86 sType*: VkStructureType
87 pNext*: pointer
88 formatConstraintsCount*: uint32
89 pFormatConstraints*: ptr VkImageFormatConstraintsInfoFUCHSIA
90 bufferCollectionConstraints*: VkBufferCollectionConstraintsInfoFUCHSIA
91 flags*: VkImageConstraintsInfoFlagsFUCHSIA
92 VkBufferCollectionConstraintsInfoFUCHSIA* = object
93 sType*: VkStructureType
94 pNext*: pointer
95 minBufferCount*: uint32
96 maxBufferCount*: uint32
97 minBufferCountForCamping*: uint32
98 minBufferCountForDedicatedSlack*: uint32
99 minBufferCountForSharedSlack*: uint32
100 zx_handle_t *{.header: "zircon/types.h".} = object
101 # extension VK_FUCHSIA_external_memory
102 var
103 vkGetMemoryZirconHandleFUCHSIA*: proc(device: VkDevice, pGetZirconHandleInfo: ptr VkMemoryGetZirconHandleInfoFUCHSIA, pZirconHandle: ptr zx_handle_t): VkResult {.stdcall.}
104 vkGetMemoryZirconHandlePropertiesFUCHSIA*: proc(device: VkDevice, handleType: VkExternalMemoryHandleTypeFlagBits, zirconHandle: zx_handle_t, pMemoryZirconHandleProperties: ptr VkMemoryZirconHandlePropertiesFUCHSIA): VkResult {.stdcall.}
105 proc loadVK_FUCHSIA_external_memory*(instance: VkInstance) =
106 loadVK_VERSION_1_1(instance)
107 loadVK_VERSION_1_1(instance)
108 vkGetMemoryZirconHandleFUCHSIA = cast[proc(device: VkDevice, pGetZirconHandleInfo: ptr VkMemoryGetZirconHandleInfoFUCHSIA, pZirconHandle: ptr zx_handle_t): VkResult {.stdcall.}](vkGetInstanceProcAddr(instance, "vkGetMemoryZirconHandleFUCHSIA"))
109 vkGetMemoryZirconHandlePropertiesFUCHSIA = cast[proc(device: VkDevice, handleType: VkExternalMemoryHandleTypeFlagBits, zirconHandle: zx_handle_t, pMemoryZirconHandleProperties: ptr VkMemoryZirconHandlePropertiesFUCHSIA): VkResult {.stdcall.}](vkGetInstanceProcAddr(instance, "vkGetMemoryZirconHandlePropertiesFUCHSIA"))
110
111 # extension VK_FUCHSIA_external_semaphore
112 var
113 vkImportSemaphoreZirconHandleFUCHSIA*: proc(device: VkDevice, pImportSemaphoreZirconHandleInfo: ptr VkImportSemaphoreZirconHandleInfoFUCHSIA): VkResult {.stdcall.}
114 vkGetSemaphoreZirconHandleFUCHSIA*: proc(device: VkDevice, pGetZirconHandleInfo: ptr VkSemaphoreGetZirconHandleInfoFUCHSIA, pZirconHandle: ptr zx_handle_t): VkResult {.stdcall.}
115 proc loadVK_FUCHSIA_external_semaphore*(instance: VkInstance) =
116 loadVK_VERSION_1_1(instance)
117 loadVK_VERSION_1_1(instance)
118 vkImportSemaphoreZirconHandleFUCHSIA = cast[proc(device: VkDevice, pImportSemaphoreZirconHandleInfo: ptr VkImportSemaphoreZirconHandleInfoFUCHSIA): VkResult {.stdcall.}](vkGetInstanceProcAddr(instance, "vkImportSemaphoreZirconHandleFUCHSIA"))
119 vkGetSemaphoreZirconHandleFUCHSIA = cast[proc(device: VkDevice, pGetZirconHandleInfo: ptr VkSemaphoreGetZirconHandleInfoFUCHSIA, pZirconHandle: ptr zx_handle_t): VkResult {.stdcall.}](vkGetInstanceProcAddr(instance, "vkGetSemaphoreZirconHandleFUCHSIA"))
120
121 # extension VK_FUCHSIA_buffer_collection
122 var
123 vkCreateBufferCollectionFUCHSIA*: proc(device: VkDevice, pCreateInfo: ptr VkBufferCollectionCreateInfoFUCHSIA, pAllocator: ptr VkAllocationCallbacks, pCollection: ptr VkBufferCollectionFUCHSIA): VkResult {.stdcall.}
124 vkSetBufferCollectionImageConstraintsFUCHSIA*: proc(device: VkDevice, collection: VkBufferCollectionFUCHSIA, pImageConstraintsInfo: ptr VkImageConstraintsInfoFUCHSIA): VkResult {.stdcall.}
125 vkSetBufferCollectionBufferConstraintsFUCHSIA*: proc(device: VkDevice, collection: VkBufferCollectionFUCHSIA, pBufferConstraintsInfo: ptr VkBufferConstraintsInfoFUCHSIA): VkResult {.stdcall.}
126 vkDestroyBufferCollectionFUCHSIA*: proc(device: VkDevice, collection: VkBufferCollectionFUCHSIA, pAllocator: ptr VkAllocationCallbacks): void {.stdcall.}
127 vkGetBufferCollectionPropertiesFUCHSIA*: proc(device: VkDevice, collection: VkBufferCollectionFUCHSIA, pProperties: ptr VkBufferCollectionPropertiesFUCHSIA): VkResult {.stdcall.}
128 proc loadVK_FUCHSIA_buffer_collection*(instance: VkInstance) =
129 loadVK_FUCHSIA_external_memory(instance)
130 loadVK_VERSION_1_1(instance)
131 vkCreateBufferCollectionFUCHSIA = cast[proc(device: VkDevice, pCreateInfo: ptr VkBufferCollectionCreateInfoFUCHSIA, pAllocator: ptr VkAllocationCallbacks, pCollection: ptr VkBufferCollectionFUCHSIA): VkResult {.stdcall.}](vkGetInstanceProcAddr(instance, "vkCreateBufferCollectionFUCHSIA"))
132 vkSetBufferCollectionImageConstraintsFUCHSIA = cast[proc(device: VkDevice, collection: VkBufferCollectionFUCHSIA, pImageConstraintsInfo: ptr VkImageConstraintsInfoFUCHSIA): VkResult {.stdcall.}](vkGetInstanceProcAddr(instance, "vkSetBufferCollectionImageConstraintsFUCHSIA"))
133 vkSetBufferCollectionBufferConstraintsFUCHSIA = cast[proc(device: VkDevice, collection: VkBufferCollectionFUCHSIA, pBufferConstraintsInfo: ptr VkBufferConstraintsInfoFUCHSIA): VkResult {.stdcall.}](vkGetInstanceProcAddr(instance, "vkSetBufferCollectionBufferConstraintsFUCHSIA"))
134 vkDestroyBufferCollectionFUCHSIA = cast[proc(device: VkDevice, collection: VkBufferCollectionFUCHSIA, pAllocator: ptr VkAllocationCallbacks): void {.stdcall.}](vkGetInstanceProcAddr(instance, "vkDestroyBufferCollectionFUCHSIA"))
135 vkGetBufferCollectionPropertiesFUCHSIA = cast[proc(device: VkDevice, collection: VkBufferCollectionFUCHSIA, pProperties: ptr VkBufferCollectionPropertiesFUCHSIA): VkResult {.stdcall.}](vkGetInstanceProcAddr(instance, "vkGetBufferCollectionPropertiesFUCHSIA"))
136
137 # extension VK_FUCHSIA_imagepipe_surface
138 var
139 vkCreateImagePipeSurfaceFUCHSIA*: proc(instance: VkInstance, pCreateInfo: ptr VkImagePipeSurfaceCreateInfoFUCHSIA, pAllocator: ptr VkAllocationCallbacks, pSurface: ptr VkSurfaceKHR): VkResult {.stdcall.}
140 proc loadVK_FUCHSIA_imagepipe_surface*(instance: VkInstance) =
141 loadVK_KHR_surface(instance)
142 vkCreateImagePipeSurfaceFUCHSIA = cast[proc(instance: VkInstance, pCreateInfo: ptr VkImagePipeSurfaceCreateInfoFUCHSIA, pAllocator: ptr VkAllocationCallbacks, pSurface: ptr VkSurfaceKHR): VkResult {.stdcall.}](vkGetInstanceProcAddr(instance, "vkCreateImagePipeSurfaceFUCHSIA"))