Hello, having trouble using allocCstringArray to to allocate enough space for 
my extensions in Vulkan.

The problem is that the extension member is an array of 256 char so i cannot 
use it in allocCstringArray.

So here is the code to my problem.
    
    
    VkExtensionProperties* = object
        extensionName*: array[vkMaxExtensionNameSize, char]
        specVersion*: uint32
    

i can get the "extensionName" member to a cstring but allocCstringArray wants a 
openarray of string.

so this is far as i got tonight.
    
    
    for i in 0 .. extension_prop.len:
          var s = (extension_prop[i].extensionName.cstring)
          extension = allocCStringArray(??) #what to do here?
    

and i have to use cstringArray for the "extension" type. I'm sure there is 
someway to do this. 

Reply via email to