Mercurial > games > semicongine
comparison examples/E02_squares.nim @ 139:34112bf5abf8
add: small buffer adjustment
| author | Sam <sam@basx.dev> |
|---|---|
| date | Sat, 22 Apr 2023 16:52:55 +0700 |
| parents | ac2b6777c5db |
| children | a4e6e76128e6 |
comparison
equal
deleted
inserted
replaced
| 138:62bc83b8a8c7 | 139:34112bf5abf8 |
|---|---|
| 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")] |
