Skip to content

Commit f8ecbc3

Browse files
committed
VK: Implement chunked scratch buffer for uniforms. Fixed issue #3112.
1 parent df6e5ce commit f8ecbc3

File tree

3 files changed

+407
-127
lines changed

3 files changed

+407
-127
lines changed

src/bgfx_p.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2192,6 +2192,7 @@ namespace bgfx
21922192
, m_offset
21932193
, kMaxOffset
21942194
);
2195+
BX_UNUSED(kMaxSize, kMaxOffset);
21952196

21962197
const KeyT view = (KeyT(m_view) << kViewShift) & kViewMask;
21972198
const KeyT handle = (KeyT(m_handle) << kHandleShift) & kHandleMask;
@@ -2694,6 +2695,7 @@ namespace bgfx
26942695
, "Setting uniform for draw call, but uniform frequency is different (frequency: %d)!"
26952696
, uniform.m_freq
26962697
);
2698+
BX_UNUSED(uniform);
26972699
}
26982700

26992701
UniformBuffer::update(&m_frame->m_uniformBuffer[m_uniformIdx]);
@@ -3305,6 +3307,7 @@ namespace bgfx
33053307
, "Truncated uniform update. %d (max: %d)"
33063308
, _num, uniform.m_num
33073309
);
3310+
BX_UNUSED(freq);
33083311

33093312
UniformCacheKey key =
33103313
{

0 commit comments

Comments
 (0)