comparison examples/E02_squares.nim @ 600:177bfb85adb1

add: small buffer adjustment
author Sam <sam@basx.dev>
date Sat, 22 Apr 2023 16:52:55 +0700
parents 67b44ba428d1
children f41c1b78cf5b
comparison
equal deleted inserted replaced
599:5eadc1e1d6d8 600:177bfb85adb1
45 45
46 46
47 const 47 const
48 vertexInput = @[ 48 vertexInput = @[
49 attr[Vec3f]("position", memoryLocation=VRAM), 49 attr[Vec3f]("position", memoryLocation=VRAM),
50 attr[Vec3f]("color", memoryLocation=VRAM), 50 attr[Vec3f]("color", memoryLocation=VRAMVisible),
51 attr[uint32]("index", memoryLocation=VRAM), 51 attr[uint32]("index", memoryLocation=VRAM),
52 ] 52 ]
53 vertexOutput = @[attr[Vec3f]("outcolor")] 53 vertexOutput = @[attr[Vec3f]("outcolor")]
54 uniforms = @[attr[float32]("time")] 54 uniforms = @[attr[float32]("time")]
55 fragOutput = @[attr[Vec4f]("color")] 55 fragOutput = @[attr[Vec4f]("color")]