Lines Matching defs:ctx

2449 	const auto			ctx				= m_context.getContextCommonData();
2459 ImageWithBuffer colorBuffer (ctx.vkd, ctx.device, ctx.allocator, imageExtent, colorFormat, colorUsage, VK_IMAGE_TYPE_2D);
2460 const auto colorView = makeImageView(ctx.vkd, ctx.device, colorBuffer.getImage(), VK_IMAGE_VIEW_TYPE_2D, colorFormat, colorSRR);
2465 BufferWithMemory verificationBuffer (ctx.vkd, ctx.device, ctx.allocator, verificationBufferInfo, MemoryRequirement::HostVisible);
2469 const auto pipelineLayout = makePipelineLayout(ctx.vkd, ctx.device);
2479 const auto vertModule = createShaderModule(ctx.vkd, ctx.device, binaries.get("vert"));
2480 const auto fragModule = createShaderModule(ctx.vkd, ctx.device, binaries.get("frag"));
2578 vertexInputLib = createGraphicsPipeline(ctx.vkd, ctx.device, VK_NULL_HANDLE, &vertexInputPipelineInfo);
2596 preRasterShaderLib = createGraphicsPipeline(ctx.vkd, ctx.device, DE_NULL, &preRasterShaderPipelineInfo);
2614 fragShaderLib = createGraphicsPipeline(ctx.vkd, ctx.device, DE_NULL, &fragShaderPipelineInfo);
2627 fragOutputLib = createGraphicsPipeline(ctx.vkd, ctx.device, DE_NULL, &fragOutputPipelineInfo);
2647 const auto pipeline = createGraphicsPipeline(ctx.vkd, ctx.device, DE_NULL, &linkedPipelineInfo);
2649 CommandPoolWithBuffer cmd (ctx.vkd, ctx.device, ctx.qfIndex);
2654 beginCommandBuffer(ctx.vkd, cmdBuffer);
2659 cmdPipelineImageMemoryBarrier(ctx.vkd, cmdBuffer, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, &preRenderBarrier);
2661 beginRendering(ctx.vkd, cmdBuffer, colorView.get(), scissors.at(0u), clearValue, VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL);
2662 ctx.vkd.cmdBindPipeline(cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline.get());
2663 ctx.vkd.cmdDraw(cmdBuffer, 3u, 1u, 0u, 0u);
2664 endRendering(ctx.vkd, cmdBuffer);
2669 cmdPipelineImageMemoryBarrier(ctx.vkd, cmdBuffer, VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT, &color2Transfer);
2671 ctx.vkd.cmdCopyImageToBuffer(cmdBuffer, colorBuffer.getImage(), VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, verificationBuffer.get(), 1u, &copyRegion);
2674 cmdPipelineMemoryBarrier(ctx.vkd, cmdBuffer, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_HOST_BIT, &transfer2Host);
2676 endCommandBuffer(ctx.vkd, cmdBuffer);
2678 submitCommandsAndWait(ctx.vkd, ctx.device, ctx.queue, cmdBuffer);
2679 invalidateAlloc(ctx.vkd, ctx.device, verificationBufferAlloc);