Lines Matching refs:device
1473 const auto device = m_context.getDevice();
1529 const vk::ImageWithMemory texImage {vkd, device, allocator, texImgCreateInfo, vk::MemoryRequirement::Any};
1530 const vk::ImageWithMemory fbImage {vkd, device, allocator, fbImgCreateInfo, vk::MemoryRequirement::Any};
1534 const auto texView = vk::makeImageView(vkd, device, texImage.get(), vk::VK_IMAGE_VIEW_TYPE_2D, m_params.format, colorSubresourceRange);
1535 const auto fbView = vk::makeImageView(vkd, device, fbImage.get(), vk::VK_IMAGE_VIEW_TYPE_2D, m_params.format, colorSubresourceRange);
1541 const vk::BufferWithMemory texBuffer {vkd, device, allocator, texBufferInfo, vk::MemoryRequirement::HostVisible};
1542 const vk::BufferWithMemory resultsBuffer {vkd, device, allocator, resultsBufferInfo, vk::MemoryRequirement::HostVisible};
1581 vk::flushAlloc(vkd, device, texBufferAlloc);
1614 const vk::BufferWithMemory vertexBuffer {vkd, device, allocator, vertexBufferInfo, vk::MemoryRequirement::HostVisible};
1620 vk::flushAlloc(vkd, device, vertexAlloc);
1625 const auto descriptorSetLayout = layoutBuilder.build(vkd, device);
1630 const auto descriptorPool = poolBuilder.build(vkd, device, vk::VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u);
1633 const auto descriptorSet = vk::makeDescriptorSet(vkd, device, descriptorPool.get(), descriptorSetLayout.get());
1662 const auto texSampler = vk::createSampler(vkd, device, &samplerCreateInfo);
1668 updateBuilder.update(vkd, device);
1671 const auto vertexModule = vk::ShaderWrapper(vkd, device, m_context.getBinaryCollection().get("vert"), 0u);
1672 const auto fragModule = vk::ShaderWrapper(vkd, device, m_context.getBinaryCollection().get("frag"), 0u);
1720 RenderPassWrapper renderPass (m_params.pipelineConstructionType, vkd, device, &renderPassInfo);
1725 renderPass.createFramebuffer(vkd, device, 1u, &fbImage.get(),&fbView.get(), texExtent.width, texExtent.height, texExtent.depth);
1746 const vk::PipelineLayoutWrapper pipelineLayout (m_params.pipelineConstructionType, vkd, device, &pipelineLayoutInfo);
1767 GraphicsPipelineWrapper pipeline(vki, vkd, physDevice, device, m_context.getDeviceExtensions(), m_params.pipelineConstructionType);
1785 const auto cmdPool = vk::createCommandPool(vkd, device, vk::VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueIndex);
1786 const auto cmdBufferPtr = vk::allocateCommandBuffer(vkd, device, cmdPool.get(), vk::VK_COMMAND_BUFFER_LEVEL_PRIMARY);
1825 vk::submitCommandsAndWait(vkd, device, queue, cmdBuffer);
1829 vk::invalidateAlloc(vkd, device, resultsBufferAlloc);
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);
2229 submitCommandsAndWait(ctx.vkd, ctx.device, ctx.queue, cmdBuffer);
2233 invalidateAlloc(ctx.vkd, ctx.device, colorBufferAlloc);