Lines Matching defs:device
285 const auto device = m_context.getDevice();
310 vk::ImageWithMemory colorImage(vkd, device, alloc, colorCreateInfo, vk::MemoryRequirement::Any);
350 depthStencilImage.reset(new vk::ImageWithMemory(vkd, device, alloc, depthStencilCreateInfo, vk::MemoryRequirement::Any));
355 const auto colorImageView = vk::makeImageView(vkd, device, colorImage.get(), vk::VK_IMAGE_VIEW_TYPE_2D, kColorFormat, colorSubresourceRange);
361 depthStencilImageView = vk::makeImageView(vkd, device, depthStencilImage.get()->get(), vk::VK_IMAGE_VIEW_TYPE_2D, depthStencilFormat, depthStencilSubresourceRange);
368 vk::BufferWithMemory colorImageBuffer(vkd, device, alloc, colorImageBufferInfo, vk::MemoryRequirement::HostVisible);
384 vk::BufferWithMemory vertexBuffer (vkd, device, alloc, vertexBufferInfo, vk::MemoryRequirement::HostVisible);
388 vk::flushAlloc(vkd, device, vertexBufferAlloc);
393 vk::BufferWithMemory storageBuffer (vkd, device, alloc, storageBufferInfo, vk::MemoryRequirement::HostVisible);
397 vk::flushAlloc(vkd, device, storageBufferAlloc);
402 const auto descriptorSetLayout = layoutBuilder.build(vkd, device);
405 const auto pipelineLayout = vk::makePipelineLayout(vkd, device, descriptorSetLayout.get());
410 const auto descriptorPool = poolBuilder.build(vkd, device, vk::VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u);
413 const auto descriptorSet = vk::makeDescriptorSet(vkd, device, descriptorPool.get(), descriptorSetLayout.get());
419 updateBuilder.update(vkd, device);
422 const auto renderPass = vk::makeRenderPass(vkd, device, kColorFormat, depthStencilFormat);
429 const auto framebuffer = vk::makeFramebuffer(vkd, device, renderPass.get(), static_cast<deUint32>(imageViews.size()), imageViews.data(), kFramebufferWidth, kFramebufferHeight);
432 const auto vertModule = vk::createShaderModule(vkd, device, m_context.getBinaryCollection().get("vert"), 0u);
433 const auto fragModule = vk::createShaderModule(vkd, device, m_context.getBinaryCollection().get("frag"), 0u);
562 vkd, device, pipelineLayout.get(),
575 const auto cmdPool = vk::makeCommandPool(vkd, device, queueIndex);
576 const auto cmdBufferPtr = vk::allocateCommandBuffer(vkd, device, cmdPool.get(), vk::VK_COMMAND_BUFFER_LEVEL_PRIMARY);
610 vk::submitCommandsAndWait(vkd, device, queue, cmdBuffer);
615 vk::invalidateAlloc(vkd, device, storageBufferAlloc);
636 vk::invalidateAlloc(vkd, device, colorImageBufferAlloc);