Mercurial > games > semicongine
diff tests/test_vulkan_wrapper.nim @ 792:d65b62812d34
did: undid using meshes as values, ref is much better, fix a few things, fix a few huge performance issues
author | Sam <sam@basx.dev> |
---|---|
date | Sun, 03 Sep 2023 17:34:29 +0700 |
parents | 43432dad4797 |
children | 2533f524bdb6 |
line wrap: on
line diff
--- a/tests/test_vulkan_wrapper.nim Sat Sep 02 23:51:02 2023 +0700 +++ b/tests/test_vulkan_wrapper.nim Sun Sep 03 17:34:29 2023 +0700 @@ -168,7 +168,6 @@ attr[Vec4f]("outcolor"), ], outputs=[attr[Vec4f]("color")], - uniforms=[attr[float32]("time")], samplers=[ attr[Sampler2DType]("my_little_texture") ], @@ -202,7 +201,6 @@ ] for scene in scenes.mitems: - scene.addShaderGlobal("time", 0.0'f32) engine.addScene(scene) # MAINLOOP @@ -214,7 +212,6 @@ if engine.updateInputs() != Running or engine.keyIsDown(Escape): engine.destroy() return - setShaderGlobal(scene, "time", getShaderGlobal[float32](scene, "time") + 0.0005'f) engine.renderScene(scene) echo "Rendered ", engine.framesRendered, " frames" echo "Processed ", engine.eventsProcessed, " events"