Mercurial > games > semicongine
comparison semiconginev2/rendering.nim @ 1252:01e9f41d35b1
add:support for push constants
author | sam <sam@basx.dev> |
---|---|
date | Fri, 26 Jul 2024 23:04:01 +0700 |
parents | e8b3dc80e48e |
children | c4f98eb4bb05 |
comparison
equal
deleted
inserted
replaced
1251:3f98ad20a9d3 | 1252:01e9f41d35b1 |
---|---|
16 const DEPTH_FORMAT* = VK_FORMAT_D32_SFLOAT | 16 const DEPTH_FORMAT* = VK_FORMAT_D32_SFLOAT |
17 | 17 |
18 # custom pragmas to classify shader attributes | 18 # custom pragmas to classify shader attributes |
19 template VertexAttribute* {.pragma.} | 19 template VertexAttribute* {.pragma.} |
20 template InstanceAttribute* {.pragma.} | 20 template InstanceAttribute* {.pragma.} |
21 template PushConstantAttribute* {.pragma.} | |
21 template Pass* {.pragma.} | 22 template Pass* {.pragma.} |
22 template PassFlat* {.pragma.} | 23 template PassFlat* {.pragma.} |
23 template ShaderOutput* {.pragma.} | 24 template ShaderOutput* {.pragma.} |
24 template DescriptorSets* {.pragma.} | 25 template DescriptorSets* {.pragma.} |
25 | 26 |