Mercurial > games > semicongine
diff src/zamikongine/buffer.nim @ 493:680c4b8ca28a
add: working implementation of uniforms
author | Sam <sam@basx.dev> |
---|---|
date | Sat, 14 Jan 2023 23:34:50 +0700 |
parents | 54a1f8ee208e |
children | 94c38e4b5782 |
line wrap: on
line diff
--- a/src/zamikongine/buffer.nim Sat Jan 14 14:15:50 2023 +0700 +++ b/src/zamikongine/buffer.nim Sat Jan 14 23:34:50 2023 +0700 @@ -84,7 +84,7 @@ body vkUnmapMemory(buffer.device, buffer.memory) -# note: does not work with seq +# note: does not work with seq, because of sizeof proc updateData*[T](buffer: Buffer, data: var T) = if buffer.persistentMapping: copyMem(buffer.mapped, addr(data), sizeof(T))