diff semiconginev2/rendering.nim @ 1231:70f6c1cfe005

add: incomplete cube demo
author sam <sam@basx.dev>
date Thu, 18 Jul 2024 23:48:57 +0700
parents 5dcb503ef0c0
children 1cf698973dca
line wrap: on
line diff
--- a/semiconginev2/rendering.nim	Fri Jul 19 04:49:18 2024 +0700
+++ b/semiconginev2/rendering.nim	Thu Jul 18 23:48:57 2024 +0700
@@ -116,6 +116,8 @@
     size: uint64
     rawPointer: pointer # if not nil, buffer is using mapped memory
     offsetNextFree: uint64
+    memoryOffset: uint64
+    memory: VkDeviceMemory
   Image*[T: PixelType] = object
     width*: uint32
     height*: uint32
@@ -132,7 +134,7 @@
     offset*: uint64
   GPUValue*[T: object, TBuffer: static BufferType] = object
     data*: T
-    buffer: Buffer
+    buffer*: Buffer
     offset: uint64
   GPUData = GPUArray | GPUValue