Mercurial > games > semicongine
comparison tests/test_vulkan_wrapper.nim @ 596:a89cd90af3cc
did: simplify code
author | Sam <sam@basx.dev> |
---|---|
date | Thu, 20 Apr 2023 23:45:57 +0700 |
parents | cda5874a8454 |
children | 62bc83b8a8c7 |
comparison
equal
deleted
inserted
replaced
595:7f7e797335ed | 596:a89cd90af3cc |
---|---|
130 inputs=vertexOutput, | 130 inputs=vertexOutput, |
131 uniforms=uniforms, | 131 uniforms=uniforms, |
132 outputs=fragOutput, | 132 outputs=fragOutput, |
133 main="color = vec4(outcolor, 1);" | 133 main="color = vec4(outcolor, 1);" |
134 ) | 134 ) |
135 var | 135 var renderPass = engine.gpuDevice.simpleForwardRenderPass(vertexCode, fragmentCode) |
136 surfaceFormat = engine.gpuDevice.physicalDevice.getSurfaceFormats().filterSurfaceFormat() | |
137 renderPass = engine.gpuDevice.simpleForwardRenderPass(surfaceFormat.format, vertexCode, fragmentCode, 2) | |
138 engine.setRenderer(renderPass) | 136 engine.setRenderer(renderPass) |
139 | 137 |
140 # INIT SCENES | 138 # INIT SCENES |
141 var scenes = [scene_simple(), scene_different_mesh_types(), scene_primitives()] | 139 var scenes = [scene_simple(), scene_different_mesh_types(), scene_primitives()] |
142 var time = initShaderGlobal("time", 0.0'f32) | 140 var time = initShaderGlobal("time", 0.0'f32) |