Mercurial > games > semicongine
comparison semiconginev2/rendering.nim @ 1240:42eeb59f3a43
add: more tests, line and point rendering
author | sam <sam@basx.dev> |
---|---|
date | Mon, 22 Jul 2024 12:42:35 +0700 |
parents | 69489a678141 |
children | e8b3dc80e48e |
comparison
equal
deleted
inserted
replaced
1239:69489a678141 | 1240:42eeb59f3a43 |
---|---|
300 queueCount: 1, | 300 queueCount: 1, |
301 pQueuePriorities: addr(priority), | 301 pQueuePriorities: addr(priority), |
302 ) | 302 ) |
303 deviceExtensionsC = allocCStringArray(deviceExtensions) | 303 deviceExtensionsC = allocCStringArray(deviceExtensions) |
304 defer: deallocCStringArray(deviceExtensionsC) | 304 defer: deallocCStringArray(deviceExtensionsC) |
305 let enabledFeatures = VkPhysicalDeviceFeatures( | |
306 fillModeNonSolid: true, | |
307 wideLines: true, | |
308 largePoints: true, | |
309 ) | |
305 var createDeviceInfo = VkDeviceCreateInfo( | 310 var createDeviceInfo = VkDeviceCreateInfo( |
306 sType: VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO, | 311 sType: VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO, |
307 queueCreateInfoCount: 1, | 312 queueCreateInfoCount: 1, |
308 pQueueCreateInfos: addr(queueInfo), | 313 pQueueCreateInfos: addr(queueInfo), |
309 enabledLayerCount: 0, | 314 enabledLayerCount: 0, |
310 ppEnabledLayerNames: nil, | 315 ppEnabledLayerNames: nil, |
311 enabledExtensionCount: uint32(deviceExtensions.len), | 316 enabledExtensionCount: uint32(deviceExtensions.len), |
312 ppEnabledExtensionNames: deviceExtensionsC, | 317 ppEnabledExtensionNames: deviceExtensionsC, |
313 pEnabledFeatures: nil, | 318 pEnabledFeatures: addr(enabledFeatures), |
314 ) | 319 ) |
315 checkVkResult vkCreateDevice( | 320 checkVkResult vkCreateDevice( |
316 physicalDevice = vulkan.physicalDevice, | 321 physicalDevice = vulkan.physicalDevice, |
317 pCreateInfo = addr createDeviceInfo, | 322 pCreateInfo = addr createDeviceInfo, |
318 pAllocator = nil, | 323 pAllocator = nil, |