Mercurial > games > semicongine
comparison semiconginev2/old/vulkan/platform/metal.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/metal.nim@a3eb305bcac2 |
children |
comparison
equal
deleted
inserted
replaced
1217:f819a874058f | 1218:56781cc0fc7c |
---|---|
1 type | |
2 VkMetalSurfaceCreateInfoEXT* = object | |
3 sType*: VkStructureType | |
4 pNext*: pointer | |
5 flags*: VkMetalSurfaceCreateFlagsEXT | |
6 pLayer*: ptr CAMetalLayer | |
7 VkExportMetalObjectCreateInfoEXT* = object | |
8 sType*: VkStructureType | |
9 pNext*: pointer | |
10 exportObjectType*: VkExportMetalObjectTypeFlagBitsEXT | |
11 VkExportMetalObjectsInfoEXT* = object | |
12 sType*: VkStructureType | |
13 pNext*: pointer | |
14 VkExportMetalDeviceInfoEXT* = object | |
15 sType*: VkStructureType | |
16 pNext*: pointer | |
17 mtlDevice*: MTLDevice_id | |
18 VkExportMetalCommandQueueInfoEXT* = object | |
19 sType*: VkStructureType | |
20 pNext*: pointer | |
21 queue*: VkQueue | |
22 mtlCommandQueue*: MTLCommandQueue_id | |
23 VkExportMetalBufferInfoEXT* = object | |
24 sType*: VkStructureType | |
25 pNext*: pointer | |
26 memory*: VkDeviceMemory | |
27 mtlBuffer*: MTLBuffer_id | |
28 VkImportMetalBufferInfoEXT* = object | |
29 sType*: VkStructureType | |
30 pNext*: pointer | |
31 mtlBuffer*: MTLBuffer_id | |
32 VkExportMetalTextureInfoEXT* = object | |
33 sType*: VkStructureType | |
34 pNext*: pointer | |
35 image*: VkImage | |
36 imageView*: VkImageView | |
37 bufferView*: VkBufferView | |
38 plane*: VkImageAspectFlagBits | |
39 mtlTexture*: MTLTexture_id | |
40 VkImportMetalTextureInfoEXT* = object | |
41 sType*: VkStructureType | |
42 pNext*: pointer | |
43 plane*: VkImageAspectFlagBits | |
44 mtlTexture*: MTLTexture_id | |
45 VkExportMetalIOSurfaceInfoEXT* = object | |
46 sType*: VkStructureType | |
47 pNext*: pointer | |
48 image*: VkImage | |
49 ioSurface*: IOSurfaceRef | |
50 VkImportMetalIOSurfaceInfoEXT* = object | |
51 sType*: VkStructureType | |
52 pNext*: pointer | |
53 ioSurface*: IOSurfaceRef | |
54 VkExportMetalSharedEventInfoEXT* = object | |
55 sType*: VkStructureType | |
56 pNext*: pointer | |
57 semaphore*: VkSemaphore | |
58 event*: VkEvent | |
59 mtlSharedEvent*: MTLSharedEvent_id | |
60 VkImportMetalSharedEventInfoEXT* = object | |
61 sType*: VkStructureType | |
62 pNext*: pointer | |
63 mtlSharedEvent*: MTLSharedEvent_id | |
64 # extension VK_EXT_metal_objects | |
65 var | |
66 vkExportMetalObjectsEXT*: proc(device: VkDevice, pMetalObjectsInfo: ptr VkExportMetalObjectsInfoEXT): void {.stdcall.} | |
67 proc loadVK_EXT_metal_objects*(instance: VkInstance) = | |
68 vkExportMetalObjectsEXT = cast[proc(device: VkDevice, pMetalObjectsInfo: ptr VkExportMetalObjectsInfoEXT): void {.stdcall.}](vkGetInstanceProcAddr(instance, "vkExportMetalObjectsEXT")) | |
69 | |
70 # extension VK_EXT_metal_surface | |
71 var | |
72 vkCreateMetalSurfaceEXT*: proc(instance: VkInstance, pCreateInfo: ptr VkMetalSurfaceCreateInfoEXT, pAllocator: ptr VkAllocationCallbacks, pSurface: ptr VkSurfaceKHR): VkResult {.stdcall.} | |
73 proc loadVK_EXT_metal_surface*(instance: VkInstance) = | |
74 loadVK_KHR_surface(instance) | |
75 vkCreateMetalSurfaceEXT = cast[proc(instance: VkInstance, pCreateInfo: ptr VkMetalSurfaceCreateInfoEXT, pAllocator: ptr VkAllocationCallbacks, pSurface: ptr VkSurfaceKHR): VkResult {.stdcall.}](vkGetInstanceProcAddr(instance, "vkCreateMetalSurfaceEXT")) |