diff tests/test_vulkan_wrapper.nim @ 121:dfaddaf96f09

did: refactor GPU data types, more generic, prepare to use for decriptors/uniforms
author Sam <sam@basx.dev>
date Fri, 07 Apr 2023 00:32:07 +0700
parents 2780d9aad142
children 506090173619
line wrap: on
line diff
--- a/tests/test_vulkan_wrapper.nim	Thu Apr 06 00:30:56 2023 +0700
+++ b/tests/test_vulkan_wrapper.nim	Fri Apr 07 00:32:07 2023 +0700
@@ -56,11 +56,11 @@
   # INIT RENDERER:
   const
     vertexInput = initAttributeGroup(
-      asAttribute(default(Vec3f), "position"),
-      asAttribute(default(Vec3f), "color"),
+      attr[Vec3f]("position"),
+      attr[Vec3f]("color"),
     )
-    vertexOutput = initAttributeGroup(asAttribute(default(Vec3f), "outcolor"))
-    fragOutput = initAttributeGroup(asAttribute(default(Vec4f), "color"))
+    vertexOutput = initAttributeGroup(attr[Vec3f]("outcolor"))
+    fragOutput = initAttributeGroup(attr[Vec4f]("color"))
     vertexCode = compileGlslShader(
       stage=VK_SHADER_STAGE_VERTEX_BIT,
       inputs=vertexInput,