comparison semiconginev2/rendering.nim @ 1253:c4f98eb4bb05

fix: a few things
author sam <sam@basx.dev>
date Fri, 26 Jul 2024 23:39:24 +0700
parents 01e9f41d35b1
children bfb75c934f4e
comparison
equal deleted inserted replaced
1252:01e9f41d35b1 1253:c4f98eb4bb05
12 const MEMORY_BLOCK_ALLOCATION_SIZE = 100_000_000'u64 # ca. 100mb per block, seems reasonable 12 const MEMORY_BLOCK_ALLOCATION_SIZE = 100_000_000'u64 # ca. 100mb per block, seems reasonable
13 const BUFFER_ALLOCATION_SIZE = 9_000_000'u64 # ca. 9mb per block, seems reasonable, can put 10 buffers into one memory block 13 const BUFFER_ALLOCATION_SIZE = 9_000_000'u64 # ca. 9mb per block, seems reasonable, can put 10 buffers into one memory block
14 const MAX_DESCRIPTORSETS = 4 14 const MAX_DESCRIPTORSETS = 4
15 const SURFACE_FORMAT* = VK_FORMAT_B8G8R8A8_SRGB 15 const SURFACE_FORMAT* = VK_FORMAT_B8G8R8A8_SRGB
16 const DEPTH_FORMAT* = VK_FORMAT_D32_SFLOAT 16 const DEPTH_FORMAT* = VK_FORMAT_D32_SFLOAT
17 const PUSH_CONSTANT_SIZE = 128
17 18
18 # custom pragmas to classify shader attributes 19 # custom pragmas to classify shader attributes
19 template VertexAttribute* {.pragma.} 20 template VertexAttribute* {.pragma.}
20 template InstanceAttribute* {.pragma.} 21 template InstanceAttribute* {.pragma.}
21 template PushConstantAttribute* {.pragma.} 22 template PushConstantAttribute* {.pragma.}