Lines Matching defs:device
76 Move<VkBuffer> makeVertexBuffer (const DeviceInterface& vk, const VkDevice device, const deUint32 queueFamilyIndex)
90 Move<VkBuffer> vertexBuffer = createBuffer(vk, device, &vertexBufferParams);;
168 const VkDevice device = m_context.getDevice();
180 Move<VkBuffer> vertexBuffer = makeVertexBuffer(vk, device, queueFamilyIndex);
181 MovePtr<Allocation> vertexBufferAlloc = bindBuffer(vk, device, allocator, *vertexBuffer, MemoryRequirement::HostVisible);
185 flushAlloc(vk, device, *vertexBufferAlloc);
207 const ImageWithMemory colorImage (vk, device, m_context.getDefaultAllocator(), colorImageCreateInfo, MemoryRequirement::Any);
208 Move<VkImageView> colorImageView = makeImageView(vk, device, *colorImage, VK_IMAGE_VIEW_TYPE_2D, VK_FORMAT_R8G8B8A8_UNORM,
233 const de::SharedPtr<Draw::Image> depthStencilImage = Draw::Image::createAndAlloc(vk, device, depthStencilBufferInfo, m_context.getDefaultAllocator(),
237 Move<VkImageView> depthStencilImageView = makeImageView(vk, device, depthStencilImage->object(), VK_IMAGE_VIEW_TYPE_2D, m_bufferFormat, subresourceRange);
239 const Move<VkCommandPool> cmdPool = createCommandPool(vk, device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex);
240 const Move<VkCommandBuffer> cmdBuffer = allocateCommandBuffer(vk, device, *cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY);
242 const auto renderPass = makeRenderPass(vk, device,VK_FORMAT_R8G8B8A8_UNORM, m_bufferFormat, VK_ATTACHMENT_LOAD_OP_CLEAR,
245 const auto framebuffer = makeFramebuffer(vk, device, renderPass.get(), static_cast<deUint32>(attachments.size()),
248 const Move<VkShaderModule> vertexModule = createShaderModule(vk, device, m_context.getBinaryCollection().get("vert"), 0u);
249 const Move<VkShaderModule> fragmentModule = createShaderModule(vk, device, m_context.getBinaryCollection().get("frag"), 0u);
251 const Move<VkPipelineLayout> pipelineLayout = makePipelineLayout(vk, device, DE_NULL);
287 const Move<VkPipeline> graphicsPipeline = makeGraphicsPipeline(vk, device, pipelineLayout.get(), vertexModule.get(),
294 Move<VkBuffer> resultBuffer = createBuffer(vk, device, &resultBufferCreateInfo);
295 MovePtr<Allocation> resultBufferMemory = allocator.allocate(getBufferMemoryRequirements(vk, device, *resultBuffer),
298 VK_CHECK(vk.bindBufferMemory(device, *resultBuffer, resultBufferMemory->getMemory(), resultBufferMemory->getOffset()));
317 submitCommandsAndWait(vk, device, queue, *cmdBuffer);
319 invalidateAlloc(vk, device, *resultBufferMemory);
324 attachment = pipeline::readDepthAttachment(vk, device, queue, queueFamilyIndex, allocator, depthStencilImage->object(),
327 attachment = pipeline::readStencilAttachment(vk, device, queue, queueFamilyIndex, allocator, depthStencilImage->object(),