diagramming out what I want to do here. CanvasFont will live with the buffers. Need to figure out how and where I'm going to query the font data for rendering
parent
b1b081af87
commit
e5ba27c353
@ -1 +0,0 @@
|
||||
<mxfile modified="2019-09-17T05:36:48.980Z" host="www.draw.io" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" etag="BK448PY-Hn1syjU6_G00" version="11.2.8" type="device" pages="1"><diagram id="eBoc7Yustm6TUbQq-vnT" name="Page-1">7Vtbc5s4FP41ntl9SMdC4MtjbafdTtOZzHhnmz4qIGM1gDxCxHZ//R7ZAgwyDmkdC3fXL0FHAsH3nZt0lB6expuPgqyWX3hAo57TDzY9POs5DvLcPvxRkq2W4PFoLwkFC7SsFMzZD6qF+sYwYwFNKwMl55Fkq6rQ50lCfVmRESH4ujpswaPqrCsS6hn7pWDuk4gaw76yQC7zt4Nf2fMXZeFSGl0xycdrQbokAV8fiPBtD08F53J/FW+mNFIA5tDs7/vQ0Fu8m6CJbHODM4nZEGfjLERPaXj3/e7jbHODvP1jnkmU6Y+eZIsFFSCb8kQSllCR9pxBBHNMHkE8CNXV7yLZESO3OeGCZ0lAFWB96F4vmaTzFfFV7xp0HGRLGUfQQnAZkUca3fOUScYTkPlABACHJ89USAZadFcbELMgUDNNSMTCo3e81x3FSM0OdNNNI++o0CYwRcpjKsUWhugb8EgroLbCG6zb61KlnbGWLQ+U2clVmWgzCotnl2oGF1rTXqN1yNC6KUmeSfo33chM0F/j5RyYjauYOSZkyDkC2eDNEHMaEPsUKx/WNbxQ3zpg+ISKTYm/tA9aER87o2TuCcy6Ypp11DqgaoMG2OYQ8VUkrYedP3wer1gEmY3KZ9TXsxWNINL+aR1dI1gg61rpmJb8hSTg9VIDLRpA+qabXMglD3lCottSOqniWY6543ylUfxOpdzqXJRkwA+eAHhi+6D7d41v6gnvvLw52+gn7ltb3TK4US94mhn4Hp4Jn7bI2SQRIZWnBg6Pcy1oRCR7rr7J+XlzL8bPAc50w+RDTgZcHxAFrZIn1dgekvZQZfRbhdDj9J6T08FVcIqHrW0RfJCsUiNoyn6Qx90ABd+Ks0Tu3tCb9LzZq/LiXe49If5TuNOYKY+42M2LF7vfKW+oV4v6TXoHi7+StxMa3eg7b0B9+iPtrVrzoR93r8A4GMIXixQUoU5YMevPc5jHzyuyy5rbdV7yu+c0zGFLw8Rjm4aJTMPc5yDWMwrkvrz8PJpQoPGbZRSOVQsotL6IMa+OTOiCBjC6isiUv6ZhAB8Eie2vWupWUKTL9tJqcw/GhlWcU1PHbTV1ZDWHMjX1ve9ncQaT/0fyqNO2AgEe5TuE28qM3U2qct07IHUmyFphYz8Eu51zPtjczjxlA1eWn14wPc1Zezk97R9XkQvtBfTN6MzjVSY7YiC17eshsm4gZl3u0pteZzOOd31IDasG4rovmMiudU8FAzhVBDu73bTdQ8PYqt38X5797cuzw6rvcYem77lwedZpKmh0pQZUr1J49osUTfsvHanP1gAbWC+aOU3r9Q7VZ3HntMxcZXSwQIu7pmt4cHVJk739Ptx6RWE1M8INK4pubPc5XucWFEeOXCm8PlORqGOb13RGoZYxFcHNHrjmwZlrXa3ZK4HnGtpxx+Oiq+MUVuCQblVW4K5newWOcVu6rRZW8ZFzhMpvziWR9uMMqsUZt60rRKM384VmjvrP073gPk1TLqwjdoPqR1XbhmZv4L0aMmiWB/z3tYbyXyXw7b8=</diagram></mxfile>
|
@ -1,57 +0,0 @@
|
||||
|
||||
|
||||
|
||||
|
||||
StorageImage
|
||||
General-purpose image in device memory.
|
||||
AttachmentImage
|
||||
ImageAccess whose purpose is to be used as a framebuffer attachment
|
||||
|
||||
|
||||
|
||||
|
||||
Hello!
|
||||
|
||||
Any of you guys use the Vulkano library? There is this PersistentDescriptorSetBuilder struct
|
||||
which uses this fun chaining dynamic
|
||||
|
||||
```
|
||||
PersistentDescriptorSet::start(layout, 0)
|
||||
.add_sampled_image(sampled_image1).unwrap()
|
||||
.add_sampled_image(sampled_image2).unwrap()
|
||||
.add_sampled_image(sampled_image3).unwrap()
|
||||
.build().unwrap();
|
||||
```
|
||||
|
||||
But it modifies the return values template values so I can't store it between loops
|
||||
|
||||
```
|
||||
let mut set_builder = PersistentDescriptorSet::start(layout, 0);
|
||||
for image in images {
|
||||
set_builder = set_builder.add_sampled_image(image);
|
||||
}
|
||||
let descriptor_set = set_builder.build().unwrap();
|
||||
```
|
||||
|
||||
The gist of the error that I get is something like:
|
||||
|
||||
```
|
||||
expected:
|
||||
PersistentDescriptorSetBuilder<Arc<GraphicsPipelineAbstract>, ()>
|
||||
got:
|
||||
PersistentDescriptorSetBuilder<Arc<GraphicsPipelineAbstract>, ((), PersistentDescriptorSetImg<Arc<ImmutableImage<Format>>>)>
|
||||
```
|
||||
|
||||
So it's adding tuples of tuples of tuples of tuples of tuples each time I chain a
|
||||
.add_sampled_image() call. I really really want to be able to do this dynamically in
|
||||
a loop; I've tried this neat iter().fold() thinking that if I didn't explicitly
|
||||
overwrite the previous returned value, rust would figure it out. It didn't
|
||||
|
||||
```
|
||||
let descriptor_set = images.iter().fold(
|
||||
PersistentDescriptorSet::start(layout, 0)
|
||||
,|a, &b| a.add_image(b))
|
||||
.unwrap()).build().unwrap();
|
||||
```
|
||||
|
||||
How do I do this dynamically?
|
Loading…
Reference in new issue