Mercurial > games > semicongine
comparison semiconginev2/rendering.nim @ 1224:a3fa15c25026 compiletime-tests
did: cleanup, add audio, change platform-dependent structure
author | sam <sam@basx.dev> |
---|---|
date | Wed, 17 Jul 2024 22:02:11 +0700 |
parents | 56781cc0fc7c |
children | c8e3037aca66 |
comparison
equal
deleted
inserted
replaced
1223:55896320c8bf | 1224:a3fa15c25026 |
---|---|
22 template DescriptorSets* {.pragma.} | 22 template DescriptorSets* {.pragma.} |
23 | 23 |
24 # there is a big, bad global vulkan object | 24 # there is a big, bad global vulkan object |
25 # believe me, this makes everything much, much easier | 25 # believe me, this makes everything much, much easier |
26 | 26 |
27 include ./platform/window # for NativeWindow | 27 when defined(windows): |
28 include ./platform/surface # For CreateNativeSurface | 28 include ./rendering/platform/windows |
29 when defined(linux): | |
30 include ./rendering/platform/linux | |
29 | 31 |
30 type | 32 type |
31 VulkanGlobals* = object | 33 VulkanGlobals* = object |
32 # populated through InitVulkan proc | 34 # populated through InitVulkan proc |
33 instance*: VkInstance | 35 instance*: VkInstance |