diff options
author | Juan Linietsky <reduzio@gmail.com> | 2019-06-10 14:12:24 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2020-02-11 11:53:26 +0100 |
commit | 9ffe57a10eecf79ab8df2f0497d0387383755df3 (patch) | |
tree | bff30e9048809561e591881be777e1357d837953 /core | |
parent | 4f163972bbd9c7379b01a1f9aa5310646ca7865e (diff) |
Modify RenderingDevice to use RIDs, now that they are O(1)
Diffstat (limited to 'core')
-rw-r--r-- | core/rid.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/rid.h b/core/rid.h index 583d62a5b1..0c4a96efed 100644 --- a/core/rid.h +++ b/core/rid.h @@ -66,6 +66,7 @@ public: return _id != p_rid._id; } _FORCE_INLINE_ bool is_valid() const { return _id != 0; } + _FORCE_INLINE_ bool is_null() const { return _id == 0; } _FORCE_INLINE_ uint64_t get_id() const { return _id; } |