comparison tests/test_vulkan_wrapper.nim @ 168:061054515d28

fix: API change
author Sam <sam@basx.dev>
date Mon, 01 May 2023 01:16:13 +0700
parents 253dd797e719
children de9dff24c422
comparison
equal deleted inserted replaced
167:4d4f7a2eb6ca 168:061054515d28
109 var engine = initEngine("Test") 109 var engine = initEngine("Test")
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", memoryPerformanceHint=PreferFastRead),
115 attr[Vec3f]("color", memoryLocation=RAM), 115 attr[Vec3f]("color", memoryPerformanceHint=PreferFastWrite),
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")]