Mercurial > games > semicongine
diff 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 |
line wrap: on
line diff
--- a/semiconginev2/rendering.nim Mon Jul 22 00:46:10 2024 +0700 +++ b/semiconginev2/rendering.nim Mon Jul 22 12:42:35 2024 +0700 @@ -302,6 +302,11 @@ ) deviceExtensionsC = allocCStringArray(deviceExtensions) defer: deallocCStringArray(deviceExtensionsC) + let enabledFeatures = VkPhysicalDeviceFeatures( + fillModeNonSolid: true, + wideLines: true, + largePoints: true, + ) var createDeviceInfo = VkDeviceCreateInfo( sType: VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO, queueCreateInfoCount: 1, @@ -310,7 +315,7 @@ ppEnabledLayerNames: nil, enabledExtensionCount: uint32(deviceExtensions.len), ppEnabledExtensionNames: deviceExtensionsC, - pEnabledFeatures: nil, + pEnabledFeatures: addr(enabledFeatures), ) checkVkResult vkCreateDevice( physicalDevice = vulkan.physicalDevice,