Mercurial > games > semicongine
diff examples/E10_pong.nim @ 617:f7e7af33e9ee
did: refactor memory selection
author | Sam <sam@basx.dev> |
---|---|
date | Sat, 29 Apr 2023 16:50:43 +0700 |
parents | 64eb53f81cf6 |
children | 25d97fa0ad5c |
line wrap: on
line diff
--- a/examples/E10_pong.nim Thu Apr 27 21:16:13 2023 +0700 +++ b/examples/E10_pong.nim Sat Apr 29 16:50:43 2023 +0700 @@ -33,9 +33,9 @@ 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")]