kompute
kompute copied to clipboard
Support granularity of configuration for descriptorsets via parameters/parameterGroup
Currently there is potential value from providing an abstraction on the way tensors are made available to algorithms via thec concept of Kompute "Parameters" or "Parameter Groups". This issue encompasses exploring the design for parameter groups to be able to expose how it can be achieved.
As I understand the situation mentioned in Discord so far:
- Explicit Parameters objects.
- Changed buffer/parameters objects should probably use dedicated descriptor pools for simplicity's sake.
- Parameters objects, on deletion, need to wait for all commands that use them to complete. (It might be an idea to look into using
vkQueueWaitIdleon deletion, unless deletion is expected to occur particularly often. It might also be an idea to check if the library has guarantees like this for other such objects - I'm not sure what would happen if an object was destroyed from, e.g. Python too early.)