comparison tests/test_vulkan_wrapper.nim @ 135:250e1dcbfec9

did: simplify code
author Sam <sam@basx.dev>
date Thu, 20 Apr 2023 23:45:57 +0700
parents 11666d28e04d
children 62bc83b8a8c7
comparison
equal deleted inserted replaced
134:e6c7973d8525 135:250e1dcbfec9
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)