Optimized encoder bind state, and uniform updates. (#3976)

This commit is contained in:
Branimir Karadžić
2026-09-12 22:43:02 +00:00
committed by GitHub
parent a0b5c3deaa
commit 8ee74e8260
9 changed files with 74 additions and 242 deletions
+1 -2
View File
@@ -3071,8 +3071,7 @@ namespace bgfx
if (type & kUniformRefBit)
{
type &= ~kUniformRefBit;
const void* ptr;
bx::memCopy(&ptr, _uniformBuffer->read(sizeof(ptr) ), sizeof(ptr) );
const void* ptr = bx::loadUnaligned<const void*>(_uniformBuffer->read(sizeof(ptr) ) );
if (UniformType::Count > type)
{
_renderCtx->updateUniform(loc, ptr, g_uniformTypeSize[type]*num);