summaryrefslogtreecommitdiff
path: root/core/templates/rid.h
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2021-01-04 09:33:25 -0300
committerreduz <reduzio@gmail.com>2021-01-05 08:50:18 -0300
commit5d2a1d78929764b66a0d6ac7d6cc866ea1c91aed (patch)
tree7409a5632c1fbed7129852221c36262a4353f363 /core/templates/rid.h
parent9a2f18f8e7311d98fa545fdc5b247f14770ea822 (diff)
Rewrite render code to be more cache and thread friendly.
Diffstat (limited to 'core/templates/rid.h')
-rw-r--r--core/templates/rid.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/templates/rid.h b/core/templates/rid.h
index b9829bd533..4c7119b4ea 100644
--- a/core/templates/rid.h
+++ b/core/templates/rid.h
@@ -61,6 +61,8 @@ public:
_ALWAYS_INLINE_ bool is_valid() const { return _id != 0; }
_ALWAYS_INLINE_ bool is_null() const { return _id == 0; }
+ _ALWAYS_INLINE_ uint32_t get_local_index() const { return _id & 0xFFFFFFFF; }
+
static _ALWAYS_INLINE_ RID from_uint64(uint64_t p_id) {
RID _rid;
_rid._id = p_id;