Oxsomi/ignis

Resource counting instead of weak references

Closed this issue · 1 comments

Weak references shouldn't exist anymore and as such, GPUResourceId becomes useless. Freeing a texture while the command list is in flight should not be possible. This period is between command add and clear or command list free.

Resource id is still useful for APIs keeping track of their internal binding without it affecting if the resource gets destroyed