phobos-rs
phobos-rs copied to clipboard
calling draw() or dispatch() does not allow further updating of descriptor sets
This is currently intentional due to performance concerns. Its possible to rework this and if the current API is not intuitive enough it should probably be implemented.
I assume users are supposed to update resource data (images, buffers) by using descriptor set indexing and using push constants instead then? Or maybe even BDA?
Descriptor indexing and BDA is nice, but that's not what this issue is about. Currently writing something like
bind_uniform_buffer(0, 0, buffer)
draw(...)
bind_uniform_buffer(0, 1, buffer2)
draw(...)
Will result in the second drawcall not having the first ubo bound at all. I'm not really sure what to do with this, or if it's fine to leave like it is.