semicongine/rendering/renderpasses

Procs

proc createDirectPresentationRenderPass(depthBuffer: bool;
                                        samples = VK_SAMPLE_COUNT_1_BIT): RenderPass {.
    ...raises: [Exception], tags: [RootEffect], forbids: [].}
proc createIndirectPresentationRenderPass(depthBuffer: bool;
    samples = VK_SAMPLE_COUNT_1_BIT): (RenderPass, RenderPass) {.
    ...raises: [Exception], tags: [RootEffect], forbids: [].}
proc destroyRenderPass(renderPass: RenderPass) {....raises: [Exception],
    tags: [RootEffect], forbids: [].}

Templates

template withRenderPass(theRenderPass: RenderPass;
                        theFramebuffer: VkFramebuffer;
                        commandbuffer: VkCommandBuffer; renderWidth: uint32;
                        renderHeight: uint32; clearColor: Vec4f; body: untyped): untyped