From cb60295e1bf1f5277c4561ffb2436e26482e211a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 27 Nov 2017 19:38:36 -0800 Subject: [PATCH] Reserve 10 bits in sort key for view. --- src/bgfx_p.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/bgfx_p.h b/src/bgfx_p.h index ab4a0a206..14fce4ff2 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -787,9 +787,10 @@ namespace bgfx uint8_t m_buffer[BGFX_CONFIG_MAX_COMMAND_BUFFER_SIZE]; }; -#define SORT_KEY_NUM_BITS_TRANS 2 +// +#define SORK_KEY_NUM_BITS_VIEW 10 -#define SORT_KEY_VIEW_SHIFT 56 +#define SORT_KEY_VIEW_SHIFT (64-SORK_KEY_NUM_BITS_VIEW) #define SORT_KEY_VIEW_MASK ( (uint64_t(BGFX_CONFIG_MAX_VIEWS-1) )<