Mercurial > games > semicongine
diff 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 |
line wrap: on
line diff
--- a/src/semicongine/vulkan/drawable.nim Sun Aug 13 19:00:11 2023 +0700 +++ b/src/semicongine/vulkan/drawable.nim Tue Aug 15 23:51:37 2023 +0700 @@ -26,7 +26,7 @@ else: &"Drawable(elementCount: {drawable.elementCount}, instanceCount: {drawable.instanceCount}, bufferOffsets: {drawable.bufferOffsets})" -proc draw*(commandBuffer: VkCommandBuffer, drawable: Drawable, vertexBuffers: Table[MemoryPerformanceHint, Buffer], indexBuffer: Buffer) = +proc draw*(drawable: Drawable, commandBuffer: VkCommandBuffer, vertexBuffers: Table[MemoryPerformanceHint, Buffer], indexBuffer: Buffer) = if drawable.mesh.entity.transform == Mat4(): return debug "Draw ", drawable