Mercurial > games > semicongine
comparison 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 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 1230:51221494caeb | 1231:70f6c1cfe005 | 
|---|---|
| 114 Buffer* = object | 114 Buffer* = object | 
| 115 vk: VkBuffer | 115 vk: VkBuffer | 
| 116 size: uint64 | 116 size: uint64 | 
| 117 rawPointer: pointer # if not nil, buffer is using mapped memory | 117 rawPointer: pointer # if not nil, buffer is using mapped memory | 
| 118 offsetNextFree: uint64 | 118 offsetNextFree: uint64 | 
| 119 memoryOffset: uint64 | |
| 120 memory: VkDeviceMemory | |
| 119 Image*[T: PixelType] = object | 121 Image*[T: PixelType] = object | 
| 120 width*: uint32 | 122 width*: uint32 | 
| 121 height*: uint32 | 123 height*: uint32 | 
| 122 interpolation*: VkFilter = VK_FILTER_LINEAR | 124 interpolation*: VkFilter = VK_FILTER_LINEAR | 
| 123 data*: seq[T] | 125 data*: seq[T] | 
| 130 data*: seq[T] | 132 data*: seq[T] | 
| 131 buffer*: Buffer | 133 buffer*: Buffer | 
| 132 offset*: uint64 | 134 offset*: uint64 | 
| 133 GPUValue*[T: object, TBuffer: static BufferType] = object | 135 GPUValue*[T: object, TBuffer: static BufferType] = object | 
| 134 data*: T | 136 data*: T | 
| 135 buffer: Buffer | 137 buffer*: Buffer | 
| 136 offset: uint64 | 138 offset: uint64 | 
| 137 GPUData = GPUArray | GPUValue | 139 GPUData = GPUArray | GPUValue | 
| 138 | 140 | 
| 139 RenderData* = object | 141 RenderData* = object | 
| 140 descriptorPool: VkDescriptorPool | 142 descriptorPool: VkDescriptorPool | 
