Mercurial > games > semicongine
diff src/zamikongine/buffer.nim @ 32:9edca5dc4e93
add: working implementation of uniforms
author | Sam <sam@basx.dev> |
---|---|
date | Sat, 14 Jan 2023 23:34:50 +0700 |
parents | b1b05d4efb52 |
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))