summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-06-10 14:12:24 -0300
committerJuan Linietsky <reduzio@gmail.com>2020-02-11 11:53:26 +0100
commit9ffe57a10eecf79ab8df2f0497d0387383755df3 (patch)
treebff30e9048809561e591881be777e1357d837953 /core
parent4f163972bbd9c7379b01a1f9aa5310646ca7865e (diff)
Modify RenderingDevice to use RIDs, now that they are O(1)
Diffstat (limited to 'core')
-rw-r--r--core/rid.h1
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; }