diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2023-02-03 00:15:19 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2023-02-03 00:15:19 +0100 |
| commit | 75acd0104448d7c5f43f99700decff39b8a034b2 (patch) | |
| tree | 1b22b1ce10f24c8ef41b3ab1110a30c545e3cc66 /include/api-test/handle.hpp | |
| parent | ddff2fa5d0cbae17cb819c91bad0a79105ba0ea7 (diff) | |
Graphics pipeline and rendering implementation
Diffstat (limited to 'include/api-test/handle.hpp')
| -rw-r--r-- | include/api-test/handle.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/api-test/handle.hpp b/include/api-test/handle.hpp index 2355191..956739d 100644 --- a/include/api-test/handle.hpp +++ b/include/api-test/handle.hpp @@ -6,5 +6,7 @@ template<typename T> struct handle { uint32_t id = handle::invalid_handle; + [[nodiscard]] inline bool is_valid() const { return id != handle::invalid_handle; } + static constexpr uint32_t invalid_handle = -1; }; |
