Closed LucaZulberti closed 1 year ago
okay maybe this particular thing doesn't count the same descriptor for the global uniforms as one but as one extra for each node? does it work if you instead place
--- .descriptorCount = 1+DT_GRAPH_MAX_FRAMES*(graph->num_nodes+graph->dset_cnt_uniform)
+++ .descriptorCount = 1+DT_GRAPH_MAX_FRAMES*2*graph->num_nodes
?
Yes with this patch it works (no errors during allocation). During the following days, I will investigate the missing GUI.
As explained in #87, the code in
graph.c
that initialises pool_sizes does not count for the correct number of uniform buffers allocated after pool creation.Code:
Using
dt_log()
I found that there are more Descriptors allocated than accounted. Example:The number of descriptor set is ok, but each descriptor set has a layout with two bindings, each one with one UBO descriptor. In the example, there are 22 available descriptors in the pool, but 12 sets (24 descriptors) are requested (even more in reality if I increment the pool).