class EE::Graphics::ResourceId

Immutable identity assigned once when a resource is created. Resource IDs are process-wide and are not reset when Engine state is recreated by tests.

#include <resource.hpp>

class ResourceId {
public:
    // construction

    ResourceId();
    ResourceId(Uint64 value);

    // methods

    constexpr Uint64 value() const;
    constexpr operator bool() const;
    constexpr bool operator==(const ResourceId& other) const;
    constexpr bool operator!=(const ResourceId& other) const;
    constexpr bool operator<(const ResourceId& other) const;
};