We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d396404 commit 08b2be8Copy full SHA for 08b2be8
src/bgfx_p.h
@@ -2178,8 +2178,8 @@ namespace bgfx
2178
{
2179
using KeyT = uint64_t;
2180
2181
- static constexpr uint8_t kViewShift = sizeof(KeyT)*8-kSortKeyViewNumBits;
2182
- static constexpr KeyT kViewMask = KeyT(BGFX_CONFIG_MAX_VIEWS-1)<<kViewShift;
+ static constexpr uint8_t kViewShift = sizeof(KeyT)*8-16;
+ static constexpr KeyT kViewMask = KeyT(UINT16_MAX)<<kViewShift;
2183
static constexpr uint8_t kHandleShift = kViewShift - 16;
2184
static constexpr KeyT kHandleMask = KeyT(UINT16_MAX)<<kHandleShift;
2185
static constexpr uint8_t kOffsetShift = kHandleShift-20;
0 commit comments