comparison tests/test_vulkan_wrapper.nim @ 138:62bc83b8a8c7

fix: mixing memory location types is not working
author Sam <sam@basx.dev>
date Sat, 22 Apr 2023 16:48:07 +0700
parents 250e1dcbfec9
children 253dd797e719
comparison
equal deleted inserted replaced
137:ac2b6777c5db 138:62bc83b8a8c7
110 110
111 # INIT RENDERER: 111 # INIT RENDERER:
112 const 112 const
113 vertexInput = @[ 113 vertexInput = @[
114 attr[Vec3f]("position", memoryLocation=VRAM), 114 attr[Vec3f]("position", memoryLocation=VRAM),
115 attr[Vec3f]("color", memoryLocation=VRAM), 115 attr[Vec3f]("color", memoryLocation=RAM),
116 attr[Vec3f]("translate", perInstance=true) 116 attr[Vec3f]("translate", perInstance=true)
117 ] 117 ]
118 vertexOutput = @[attr[Vec3f]("outcolor")] 118 vertexOutput = @[attr[Vec3f]("outcolor")]
119 uniforms = @[attr[float32]("time")] 119 uniforms = @[attr[float32]("time")]
120 fragOutput = @[attr[Vec4f]("color")] 120 fragOutput = @[attr[Vec4f]("color")]