Unique identifier, used for identifying RenderTargets when tracking the currently active RenderTarget within a given context
| 63 | // Unique identifier, used for identifying RenderTargets when |
| 64 | // tracking the currently active RenderTarget within a given context |
| 65 | std::uint64_t getUniqueId() |
| 66 | { |
| 67 | const std::lock_guard lock(getMutex()); |
| 68 | static std::uint64_t id = 1; // start at 1, zero is "no RenderTarget" |
| 69 | return id++; |
| 70 | } |
| 71 | |
| 72 | // Map to help us detect whether a different RenderTarget |
| 73 | // has been activated within a single context |