diff tests/test_vulkan_wrapper.nim @ 376:fa38cd28f041

fix: all tests
author Sam <sam@basx.dev>
date Sun, 26 Nov 2023 19:53:00 +0700
parents f054b8bacab8
children eaf084ba80e5
line wrap: on
line diff
--- a/tests/test_vulkan_wrapper.nim	Sun Nov 26 19:52:42 2023 +0700
+++ b/tests/test_vulkan_wrapper.nim	Sun Nov 26 19:53:00 2023 +0700
@@ -23,7 +23,15 @@
       ]), sampler: sampler)])
     }.toTable
   )
-  mat2 = SINGLE_TEXTURE_MATERIAL.initMaterialData(
+  Mat2Type = MaterialType(
+    name: "single texture material 2",
+    meshAttributes: {
+      "position": Vec3F32,
+      "uv": Vec2F32,
+    }.toTable,
+    attributes: {"baseTexture": TextureType}.toTable
+  )
+  mat2 = Mat2Type.initMaterialData(
     name="mat2",
     attributes={
       "baseTexture": initDataList(@[Texture(image: Image(width: 5, height: 5, imagedata: @[
@@ -199,6 +207,7 @@
   engine.initRenderer({
     SINGLE_TEXTURE_MATERIAL: shaderConfiguration1,
     SINGLE_TEXTURE_MATERIAL: shaderConfiguration1,
+    Mat2Type: shaderConfiguration1,
     SINGLE_COLOR_MATERIAL: shaderConfiguration2,
   })