Lines Matching defs:ctx

2000 	const auto ctx					= m_context.getContextCommonData();
2009 const auto maxLodBias = getPhysicalDeviceProperties(ctx.vki, ctx.physicalDevice).limits.maxSamplerLodBias;
2011 const auto textureProperties = getPhysicalDeviceImageFormatProperties(ctx.vki, ctx.physicalDevice, vkFormat, imageType, tiling, textureUsage, 0u);
2035 ImageWithMemory texture (ctx.vkd, ctx.device, ctx.allocator, textureCreateInfo, MemoryRequirement::Any);
2071 const auto textureView = createImageView(ctx.vkd, ctx.device, &viewCreateInfo);
2074 ImageWithBuffer colorBuffer (ctx.vkd, ctx.device, ctx.allocator, vkExtent, vkFormat, fbUsage, imageType);
2100 const auto sampler = createSampler(ctx.vkd, ctx.device, &samplerCreateInfo);
2112 BufferWithMemory vertexBuffer (ctx.vkd, ctx.device, ctx.allocator, vertexBufferInfo, MemoryRequirement::HostVisible);
2118 flushAlloc(ctx.vkd, ctx.device, vertexBufferAlloc);
2121 auto renderPass = RenderPassWrapper(m_params.pipelineConstructionType, ctx.vkd, ctx.device, vkFormat);
2122 renderPass.createFramebuffer(ctx.vkd, ctx.device, colorBuffer.getImage(), colorBuffer.getImageView(), vkExtent.width, vkExtent.height);
2133 const auto descriptorSetLayout = setLayoutBuilder.build(ctx.vkd, ctx.device);
2134 const PipelineLayoutWrapper pipelineLayout (m_params.pipelineConstructionType, ctx.vkd, ctx.device, *descriptorSetLayout, &pcRange);
2138 const auto descriptorPool = descriptorPoolBuilder.build(ctx.vkd, ctx.device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u);
2139 const auto descriptorSet = makeDescriptorSet(ctx.vkd, ctx.device, *descriptorPool, *descriptorSetLayout);
2144 setUpdateBuilder.update(ctx.vkd, ctx.device);
2148 const auto vertMod = ShaderWrapper(ctx.vkd, ctx.device, binaries.get("vert"));
2149 const auto fragMod = ShaderWrapper(ctx.vkd, ctx.device, binaries.get("frag"));
2154 GraphicsPipelineWrapper pipeline (ctx.vki, ctx.vkd, ctx.physicalDevice, ctx.device, m_context.getDeviceExtensions(), m_params.pipelineConstructionType);
2172 CommandPoolWithBuffer cmd (ctx.vkd, ctx.device, ctx.qfIndex);
2175 beginCommandBuffer(ctx.vkd, cmdBuffer);
2179 cmdPipelineImageMemoryBarrier(ctx.vkd, cmdBuffer, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT, &preFillBarrier);
2198 ctx.vkd.cmdClearColorImage(cmdBuffer, texture.get(), VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, &clearValueColor.color, 1u, &levelRange);
2204 cmdPipelineImageMemoryBarrier(ctx.vkd, cmdBuffer, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, &preReadBarrier);
2207 renderPass.begin(ctx.vkd, cmdBuffer, scissors.at(0u), fbClearColor);
2208 ctx.vkd.cmdBindVertexBuffers(cmdBuffer, 0u, 1u, &vertexBuffer.get(), &vertexBufferOffset);
2210 ctx.vkd.cmdBindDescriptorSets(cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, *pipelineLayout, 0u, 1u, &descriptorSet.get(), 0u, nullptr);
2211 ctx.vkd.cmdPushConstants(cmdBuffer, *pipelineLayout, pcStages, 0u, pcSize, de::dataOrNull(pcValues));
2212 ctx.vkd.cmdDraw(cmdBuffer, de::sizeU32(vertices), 1u, 0u, 0u);
2213 renderPass.end(ctx.vkd, cmdBuffer);
2216 copyImageToBuffer(ctx.vkd,
2228 endCommandBuffer(ctx.vkd, cmdBuffer);
2229 submitCommandsAndWait(ctx.vkd, ctx.device, ctx.queue, cmdBuffer);
2233 invalidateAlloc(ctx.vkd, ctx.device, colorBufferAlloc);