comparison src/semicongine/vulkan/drawable.nim @ 782:b6950ea89b37

did next step in renderpipeline-refactoring, using shaderconfiguration objects instead for less ambigious shader-pipeline configuration
author Sam <sam@basx.dev>
date Tue, 15 Aug 2023 23:51:37 +0700
parents bb4c36d68444
children 4ec852355750
comparison
equal deleted inserted replaced
781:e45c2927ecca 782:b6950ea89b37
24 if drawable.indexed: 24 if drawable.indexed:
25 &"Drawable(elementCount: {drawable.elementCount}, instanceCount: {drawable.instanceCount}, bufferOffsets: {drawable.bufferOffsets}, indexType: {drawable.indexType}, indexBufferOffset: {drawable.indexBufferOffset})" 25 &"Drawable(elementCount: {drawable.elementCount}, instanceCount: {drawable.instanceCount}, bufferOffsets: {drawable.bufferOffsets}, indexType: {drawable.indexType}, indexBufferOffset: {drawable.indexBufferOffset})"
26 else: 26 else:
27 &"Drawable(elementCount: {drawable.elementCount}, instanceCount: {drawable.instanceCount}, bufferOffsets: {drawable.bufferOffsets})" 27 &"Drawable(elementCount: {drawable.elementCount}, instanceCount: {drawable.instanceCount}, bufferOffsets: {drawable.bufferOffsets})"
28 28
29 proc draw*(commandBuffer: VkCommandBuffer, drawable: Drawable, vertexBuffers: Table[MemoryPerformanceHint, Buffer], indexBuffer: Buffer) = 29 proc draw*(drawable: Drawable, commandBuffer: VkCommandBuffer, vertexBuffers: Table[MemoryPerformanceHint, Buffer], indexBuffer: Buffer) =
30 if drawable.mesh.entity.transform == Mat4(): 30 if drawable.mesh.entity.transform == Mat4():
31 return 31 return
32 debug "Draw ", drawable 32 debug "Draw ", drawable
33 33
34 var buffers: seq[VkBuffer] 34 var buffers: seq[VkBuffer]