comparison semiconginev2/old/vulkan/platform/ggp.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/ggp.nim@a3eb305bcac2
children
comparison
equal deleted inserted replaced
1217:f819a874058f 1218:56781cc0fc7c
1 type
2 VkStreamDescriptorSurfaceCreateInfoGGP* = object
3 sType*: VkStructureType
4 pNext*: pointer
5 flags*: VkStreamDescriptorSurfaceCreateFlagsGGP
6 streamDescriptor*: GgpStreamDescriptor
7 VkPresentFrameTokenGGP* = object
8 sType*: VkStructureType
9 pNext*: pointer
10 frameToken*: GgpFrameToken
11 GgpStreamDescriptor *{.header: "ggp_c/vulkan_types.h".} = object
12 GgpFrameToken *{.header: "ggp_c/vulkan_types.h".} = object
13 # extension VK_GGP_stream_descriptor_surface
14 var
15 vkCreateStreamDescriptorSurfaceGGP*: proc(instance: VkInstance, pCreateInfo: ptr VkStreamDescriptorSurfaceCreateInfoGGP, pAllocator: ptr VkAllocationCallbacks, pSurface: ptr VkSurfaceKHR): VkResult {.stdcall.}
16 proc loadVK_GGP_stream_descriptor_surface*(instance: VkInstance) =
17 loadVK_KHR_surface(instance)
18 vkCreateStreamDescriptorSurfaceGGP = cast[proc(instance: VkInstance, pCreateInfo: ptr VkStreamDescriptorSurfaceCreateInfoGGP, pAllocator: ptr VkAllocationCallbacks, pSurface: ptr VkSurfaceKHR): VkResult {.stdcall.}](vkGetInstanceProcAddr(instance, "vkCreateStreamDescriptorSurfaceGGP"))
19
20 proc loadVK_GGP_frame_token*(instance: VkInstance) =
21 loadVK_KHR_swapchain(instance)
22 loadVK_GGP_stream_descriptor_surface(instance)