diff examples/E04_input.nim @ 624:3f13de7d8ec4

fix: API change for shader attributes
author Sam <sam@basx.dev>
date Sat, 29 Apr 2023 18:29:19 +0700
parents 64eb53f81cf6
children c33c8e156e3e
line wrap: on
line diff
--- a/examples/E04_input.nim	Sat Apr 29 17:41:40 2023 +0700
+++ b/examples/E04_input.nim	Sat Apr 29 18:29:19 2023 +0700
@@ -150,9 +150,9 @@
   # shaders
   const
     vertexInput = @[
-      attr[Vec3f]("position", memoryLocation=VRAM),
-      attr[Vec3f]("color", memoryLocation=VRAMVisible),
-      attr[Mat4]("transform", memoryLocation=VRAMVisible, perInstance=true),
+      attr[Vec3f]("position"),
+      attr[Vec3f]("color", memoryPerformanceHint=PreferFastWrite),
+      attr[Mat4]("transform", memoryPerformanceHint=PreferFastWrite, perInstance=true),
     ]
     vertexOutput = @[attr[Vec3f]("outcolor")]
     uniforms = @[attr[Mat4]("projection")]