Lines Matching defs:vkd
239 std::unique_ptr<vk::BufferWithMemory> makeBufferForImage(const vk::DeviceInterface& vkd, const vk::VkDevice device, vk::Allocator& allocator, tcu::TextureFormat tcuFormat, vk::VkExtent3D imageExtent)
244 auto outBuffer = std::unique_ptr<vk::BufferWithMemory>(new vk::BufferWithMemory(vkd, device, allocator, outBufferInfo, vk::MemoryRequirement::HostVisible));
252 const auto& vkd = m_context.getDeviceInterface();
265 vk::GraphicsPipelineWrapper pipeline1(vki, vkd, physicalDevice, device, m_context.getDeviceExtensions(), m_config.constructionType);
266 vk::GraphicsPipelineWrapper pipeline2(vki, vkd, physicalDevice, device, m_context.getDeviceExtensions(), m_config.constructionType);
290 colorAttachment = de::MovePtr<vk::ImageWithMemory>(new vk::ImageWithMemory(vkd, device, alloc, imageCreateInfo, vk::MemoryRequirement::Any));
291 auto colorAttachmentView = vk::makeImageView(vkd, device, colorAttachment->get(), vk::VK_IMAGE_VIEW_TYPE_2D, imageFormat, subresourceRange);
293 vk::RenderPassWrapper renderPass (m_config.constructionType, vkd, device, imageFormat);
294 renderPass.createFramebuffer(vkd, device, **colorAttachment, colorAttachmentView.get(), imageExtent.width, imageExtent.height);
297 auto outBuffer = makeBufferForImage(vkd, device, alloc, mappedFormat, imageExtent);
307 const vk::PipelineLayoutWrapper graphicsPipelineLayout (m_config.constructionType, vkd, device);
309 auto vtxshader = vk::ShaderWrapper(vkd, device, m_context.getBinaryCollection().get("vert"));
310 auto frgshader = vk::ShaderWrapper(vkd, device, m_context.getBinaryCollection().get("frag"));
311 auto tscshader1 = vk::ShaderWrapper(vkd, device, m_context.getBinaryCollection().get("tesc"));
312 auto tscshader2 = vk::ShaderWrapper(vkd, device,
314 auto tseshader1 = vk::ShaderWrapper(vkd, device, m_context.getBinaryCollection().get("tese"));
315 auto tseshader2 = vk::ShaderWrapper(vkd, device, m_context.getBinaryCollection().get("tese2"));
382 auto commandPool = createCommandPool(vkd, device, vk::VK_COMMAND_POOL_CREATE_TRANSIENT_BIT, qIndex);
383 auto commandBuffer = vk::allocateCommandBuffer(vkd, device, commandPool.get(), vk::VK_COMMAND_BUFFER_LEVEL_PRIMARY);
395 vk::beginCommandBuffer(vkd, commandBuffer.get());
396 renderPass.begin(vkd, *commandBuffer, renderArea, clearColor);
397 vkd.cmdSetPatchControlPointsEXT(commandBuffer.get(), 3);
399 vkd.cmdDraw(commandBuffer.get(), 6, 1, 0, 0);
401 vkd.cmdDraw(commandBuffer.get(), 6, 1, 0, 0);
402 renderPass.end(vkd, commandBuffer.get());
403 vk::copyImageToBuffer(vkd, commandBuffer.get(), colorAttachment.get()->get(), (*outBuffer).get(), imageSize);
404 vk::endCommandBuffer(vkd, commandBuffer.get());
405 vk::submitCommandsAndWait(vkd, device, m_context.getUniversalQueue(), commandBuffer.get());
407 invalidateAlloc(vkd, device, outBufferAlloc);