semicongine/rendering/shaders

Procs

proc createPipeline[TShader](shader: static TShader; renderPass: RenderPass;
    topology: VkPrimitiveTopology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
                             polygonMode: VkPolygonMode = VK_POLYGON_MODE_FILL;
    cullMode: openArray[VkCullModeFlagBits] = [VK_CULL_MODE_BACK_BIT];
                             frontFace: VkFrontFace = VK_FRONT_FACE_CLOCKWISE;
                             lineWidth = 1.0'f32; depthClampEnable = false): Pipeline[
    TShader]
proc destroyPipeline(pipeline: Pipeline)
func layout(pipeline: Pipeline; level: int): VkDescriptorSetLayout

Templates

template withPipeline(commandbuffer: VkCommandBuffer; pipeline: Pipeline;
                      body: untyped): untyped