# HG changeset patch # User Sam # Date 1684834141 -25200 # Node ID e1a789902e4f45f44798a5cf7b15451c1144ba65 # Parent 3b00747b24516798e8f494943475be0963c6d871 fix: api change of texture diff -r 3b00747b2451 -r e1a789902e4f tests/test_vulkan_wrapper.nim --- a/tests/test_vulkan_wrapper.nim Tue May 23 16:24:15 2023 +0700 +++ b/tests/test_vulkan_wrapper.nim Tue May 23 16:29:01 2023 +0700 @@ -118,16 +118,19 @@ newScene("primitives", scene_primitives()), newScene("flag", scene_flag()), ] + var sampler = DefaultSampler() + sampler.magnification = VK_FILTER_NEAREST + sampler.minification = VK_FILTER_NEAREST for scene in scenes.mitems: scene.addShaderGlobal("time", 0.0'f32) let (R, W) = ([255'u8, 0'u8, 0'u8, 255'u8], [255'u8, 255'u8, 255'u8, 255'u8]) - scene.addTexture("my_little_texture", Image(width: 5, height: 5, imagedata: @[ + scene.addTexture("my_little_texture", Texture(image: Image(width: 5, height: 5, imagedata: @[ R, R, R, R, R, R, R, W, R, R, R, W, W, W, R, R, R, W, R, R, R, R, R, R, R, - ]), VK_FILTER_NEAREST) + ]), sampler: sampler)) engine.addScene(scene, vertexInput) # MAINLOOP