Mercurial > games > semicongine
diff examples/E02_squares.nim @ 163:25d97fa0ad5c
fix: API change for shader attributes
author | Sam <sam@basx.dev> |
---|---|
date | Sat, 29 Apr 2023 18:29:19 +0700 |
parents | ae8b0d89a2ee |
children | 84fd522fdf3f |
line wrap: on
line diff
--- a/examples/E02_squares.nim Sat Apr 29 17:41:40 2023 +0700 +++ b/examples/E02_squares.nim Sat Apr 29 18:29:19 2023 +0700 @@ -46,9 +46,9 @@ const vertexInput = @[ - attr[Vec3f]("position", memoryLocation=VRAM), - attr[Vec3f]("color", memoryLocation=VRAMVisible), - attr[uint32]("index", memoryLocation=VRAM), + attr[Vec3f]("position"), + attr[Vec3f]("color", memoryPerformanceHint=PreferFastWrite), + attr[uint32]("index"), ] vertexOutput = @[attr[Vec3f]("outcolor")] uniforms = @[attr[float32]("time")]