Mercurial > games > semicongine
diff semiconginev2/rendering/shaders.nim @ 1231:70f6c1cfe005
add: incomplete cube demo
author | sam <sam@basx.dev> |
---|---|
date | Thu, 18 Jul 2024 23:48:57 +0700 |
parents | 5dcb503ef0c0 |
children | 42eeb59f3a43 |
line wrap: on
line diff
--- a/semiconginev2/rendering/shaders.nim Fri Jul 19 04:49:18 2024 +0700 +++ b/semiconginev2/rendering/shaders.nim Thu Jul 18 23:48:57 2024 +0700 @@ -347,7 +347,7 @@ renderPass: RenderPass, topology: VkPrimitiveTopology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST, polygonMode: VkPolygonMode = VK_POLYGON_MODE_FILL, - cullMode: VkCullModeFlagBits = VK_CULL_MODE_BACK_BIT, + cullMode: openArray[VkCullModeFlagBits] = [VK_CULL_MODE_BACK_BIT], frontFace: VkFrontFace = VK_FRONT_FACE_CLOCKWISE, descriptorPoolLimit = 1024, ): Pipeline[TShader] = @@ -428,7 +428,7 @@ rasterizerDiscardEnable: VK_FALSE, polygonMode: polygonMode, lineWidth: 1.0, - cullMode: toBits [cullMode], + cullMode: toBits cullMode, frontFace: frontFace, depthBiasEnable: VK_FALSE, depthBiasConstantFactor: 0.0,