Lines Matching refs:ctx
135 const auto ctx = context.getContextCommonData();
152 ImageWithBuffer colorBuffer (ctx.vkd, ctx.device, ctx.allocator, vkExtent, colorFormat, colorUsage, VK_IMAGE_TYPE_2D, colorSRR, 1u, kMultiSampleCount);
153 ImageWithBuffer resolveBuffer (ctx.vkd, ctx.device, ctx.allocator, vkExtent, colorFormat, colorUsage, VK_IMAGE_TYPE_2D, colorSRR, 1u, kSingleSampleCount);
166 BufferPtr counterBuffer (new BufferWithMemory(ctx.vkd, ctx.device, ctx.allocator, counterBufferInfo, MemoryRequirement::HostVisible));
171 flushAlloc(ctx.vkd, ctx.device, counterBufferAlloc);
179 const auto setLayout = setLayoutbuilder.build(ctx.vkd, ctx.device);
183 const auto descriptorPool = poolBuilder.build(ctx.vkd, ctx.device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, kNumDraws);
190 descriptorSets.emplace_back(makeDescriptorSet(ctx.vkd, ctx.device, *descriptorPool, *setLayout));
195 updateBuilder.update(ctx.vkd, ctx.device);
242 auto renderPass = RenderPassWrapper(constructionType, ctx.vkd, ctx.device, &renderPassCreateInfo);
246 renderPass.createFramebuffer(ctx.vkd, ctx.device, de::sizeU32(imageViews), de::dataOrNull(images), de::dataOrNull(imageViews), vkExtent.width, vkExtent.height);
250 const auto& vertModule = ShaderWrapper(ctx.vkd, ctx.device, binaries.get("vert"));
251 const auto& fragModule = ShaderWrapper(ctx.vkd, ctx.device, binaries.get("frag"));
287 const PipelineLayoutWrapper pipelineLayout (constructionType, ctx.vkd, ctx.device, *setLayout);
309 WrapperPtr pipelineWrapper(new GraphicsPipelineWrapper(ctx.vki, ctx.vkd, ctx.physicalDevice, ctx.device, context.getDeviceExtensions(), constructionType));
340 CommandPoolWithBuffer cmd (ctx.vkd, ctx.device, ctx.qfIndex);
343 beginCommandBuffer(ctx.vkd, cmdBuffer);
344 renderPass.begin(ctx.vkd, cmdBuffer, renderArea, clearColor);
351 ctx.vkd.cmdSetRasterizationSamplesEXT(cmdBuffer, kMultiSampleCount);
359 ctx.vkd.cmdSetScissorWithCount(cmdBuffer, 1u, &dynamicScissors.at(drawIdx));
360 ctx.vkd.cmdSetViewportWithCount(cmdBuffer, 1u, &dynamicViewports.at(drawIdx));
365 ctx.vkd.cmdSetScissor(cmdBuffer, 0u, 1u, &dynamicScissors.at(drawIdx));
366 ctx.vkd.cmdSetViewport(cmdBuffer, 0u, 1u, &dynamicViewports.at(drawIdx));
368 ctx.vkd.cmdBindDescriptorSets(cmdBuffer, bindPoint, *pipelineLayout, 0u, 1u, &descriptorSets.at(drawIdx).get(), 0u, nullptr);
369 ctx.vkd.cmdDraw(cmdBuffer, kVertexCount, 1u, 0u, 0u);
371 renderPass.end(ctx.vkd, cmdBuffer);
373 ctx.vkd,
384 endCommandBuffer(ctx.vkd, cmdBuffer);
385 submitCommandsAndWait(ctx.vkd, ctx.device, ctx.queue, cmdBuffer);
395 invalidateAlloc(ctx.vkd, ctx.device, resolveBufferAlloc);
406 invalidateAlloc(ctx.vkd, ctx.device, bufferAlloc);