Mercurial > games > semicongine
comparison test1.nim @ 1196:82feceae80b1 compiletime-tests
sync from bedroom to office
author | sam <sam@basx.dev> |
---|---|
date | Tue, 09 Jul 2024 22:53:38 +0700 |
parents | 5aa1184fa5eb |
children | f6a0dc7ad052 |
comparison
equal
deleted
inserted
replaced
1195:cfba2b7e00d0 | 1196:82feceae80b1 |
---|---|
73 settings: GPUValue[ShaderSettings, UniformBuffer](data: ShaderSettings(gamma: 1.0)) | 73 settings: GPUValue[ShaderSettings, UniformBuffer](data: ShaderSettings(gamma: 1.0)) |
74 ) | 74 ) |
75 ) | 75 ) |
76 | 76 |
77 let renderpass = CreatePresentationRenderPass() | 77 let renderpass = CreatePresentationRenderPass() |
78 var swapchainResult = InitSwapchain(renderpass) | |
79 assert swapchainResult.isSome() | |
80 var swapchain = swapchainResult.get() | |
78 | 81 |
79 # shaders | 82 # shaders |
80 var pipeline1 = CreatePipeline[ShaderA](renderPass = renderpass) | 83 var pipeline1 = CreatePipeline[ShaderA](renderPass = renderpass) |
81 | 84 |
82 var renderdata = InitRenderData() | 85 var renderdata = InitRenderData() |
103 | 106 |
104 # descriptors | 107 # descriptors |
105 echo "Writing descriptors" | 108 echo "Writing descriptors" |
106 InitDescriptorSet(renderdata, pipeline1.GetLayoutFor(GlobalSet), myGlobals) | 109 InitDescriptorSet(renderdata, pipeline1.GetLayoutFor(GlobalSet), myGlobals) |
107 InitDescriptorSet(renderdata, pipeline1.GetLayoutFor(MaterialSet), uniforms1) | 110 InitDescriptorSet(renderdata, pipeline1.GetLayoutFor(MaterialSet), uniforms1) |
111 | |
112 | |
113 | |
114 | |
108 | 115 |
109 | 116 |
110 # command buffer | 117 # command buffer |
111 var | 118 var |
112 commandBufferPool: VkCommandPool | 119 commandBufferPool: VkCommandPool |