Hello again
having trouble with any of the tables, i'm not sure how they work it seems, and
the manual is kinda skimpy too.
so here is my code
proc sort_queue_properties(index:int): Table[uint32,string] =
var queue_table = Table[uint32,string]()
for i in 0 .. <queue_properties[index].queueCount:
if (queue_properties[index].queueFlags and vkQueueGraphicsBit) == 1:
queue_table = {i:"vkQueueGraphicsBit"}.toTable
if (queue_properties[index].queueFlags and vkQueueComputeBit) == 1:
queue_table.add(i,"vkQueueComputeBit")
if (queue_properties[index].queueFlags and vkQueueTransferBit) == 1:
queue_table.add(i,"vkQueueTransferBit")
if (queue_properties[index].queueFlags and vkQueueSparseBindingBit) ==
1:
queue_table.add(i,"vkQueueSparseBindingBit")
return queue_table
for t in 0 .. <queue_properties.len:
let table = sort_queue_properties(t)
for i in 0 .. table.len:
echo table[i]
i end up with no values in my table even though i know the first if statement
works.
and so i print out nothing of course.
anyway some example would be nice.