From 75acd0104448d7c5f43f99700decff39b8a034b2 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Fri, 3 Feb 2023 00:15:19 +0100 Subject: Graphics pipeline and rendering implementation --- include/api-test/handle.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/api-test/handle.hpp') 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 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; }; -- cgit v1.3