phobos-rs icon indicating copy to clipboard operation
phobos-rs copied to clipboard

calling draw() or dispatch() does not allow further updating of descriptor sets

Open NotAPenguin0 opened this issue 2 years ago • 2 comments

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.

NotAPenguin0 avatar Mar 15 '23 18:03 NotAPenguin0

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?

jedjoud10 avatar Jul 12 '23 15:07 jedjoud10

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.

NotAPenguin0 avatar Jul 12 '23 19:07 NotAPenguin0