comparison test1.nim @ 1193:5aa1184fa5eb compiletime-tests

did: a few more things
author sam <sam@basx.dev>
date Mon, 08 Jul 2024 16:15:33 +0700
parents 90bf0cab1d02
children 82feceae80b1
comparison
equal deleted inserted replaced
1192:90bf0cab1d02 1193:5aa1184fa5eb
111 var 111 var
112 commandBufferPool: VkCommandPool 112 commandBufferPool: VkCommandPool
113 createInfo = VkCommandPoolCreateInfo( 113 createInfo = VkCommandPoolCreateInfo(
114 sType: VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO, 114 sType: VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO,
115 flags: toBits [VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT], 115 flags: toBits [VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT],
116 queueFamilyIndex: vulkan.queueFamilyIndex, 116 queueFamilyIndex: vulkan.graphicsQueueFamily,
117 ) 117 )
118 checkVkResult vkCreateCommandPool(vulkan.device, addr createInfo, nil, addr commandBufferPool) 118 checkVkResult vkCreateCommandPool(vulkan.device, addr createInfo, nil, addr commandBufferPool)
119 var 119 var
120 cmdBuffers: array[INFLIGHTFRAMES.int, VkCommandBuffer] 120 cmdBuffers: array[INFLIGHTFRAMES.int, VkCommandBuffer]
121 allocInfo = VkCommandBufferAllocateInfo( 121 allocInfo = VkCommandBufferAllocateInfo(