comparison tests/test_vulkan_wrapper.nim @ 629:b965f22fc9c3

fix: API change
author Sam <sam@basx.dev>
date Mon, 01 May 2023 01:16:13 +0700
parents 64eb53f81cf6
children de9dff24c422
comparison
equal deleted inserted replaced
628:c2f04f016104 629:b965f22fc9c3
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")]