mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Don't truncate view id for uniform cache. (#3505)
This commit is contained in:
committed by
GitHub
parent
d396404fd3
commit
09ad5b2340
@@ -2178,8 +2178,8 @@ namespace bgfx
|
||||
{
|
||||
using KeyT = uint64_t;
|
||||
|
||||
static constexpr uint8_t kViewShift = sizeof(KeyT)*8-kSortKeyViewNumBits;
|
||||
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;
|
||||
static constexpr uint8_t kHandleShift = kViewShift - 16;
|
||||
static constexpr KeyT kHandleMask = KeyT(UINT16_MAX)<<kHandleShift;
|
||||
static constexpr uint8_t kOffsetShift = kHandleShift-20;
|
||||
|
||||
Reference in New Issue
Block a user