mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-23 09:10:51 +00:00
The gpu backends each used a bare 255 as the sentinel for a not-yet-initialized context id. Define InvalidGpuContextId (-1) in TracyQueue.hpp and replace the scattered 255s and their asserts with it. Id exhaustion is handled by an error message and an assert in the new NextGpuContextId() getter. Non-assert builds continue execution, at which point they are no longer valid. Handling this code path is out of scope here. Various attempts at handling the exhaustion problem have been otherwise purged from the API implementations.