Lines Matching refs:device

86 Move<VkBuffer> makeVertexBuffer (const DeviceInterface& vk, const VkDevice device, const deUint32 queueFamilyIndex)
100 Move<VkBuffer> vertexBuffer = createBuffer(vk, device, &vertexBufferParams);;
175 const VkDevice device = m_context.getDevice();
187 Move<VkBuffer> vertexBuffer = makeVertexBuffer(vk, device, queueFamilyIndex);
188 MovePtr<Allocation> vertexBufferAlloc = bindBuffer(vk, device, allocator, *vertexBuffer, MemoryRequirement::HostVisible);
192 flushAlloc(vk, device, *vertexBufferAlloc);
196 const ImageWithMemory targetImage (vk, device, m_context.getDefaultAllocator(), targetCreateInfo, MemoryRequirement::Any);
197 Move<VkImageView> targetImageView = makeImageView(vk, device, *targetImage, VK_IMAGE_VIEW_TYPE_2D, FORMAT, targetSubresourceRange);
199 const Move<VkCommandPool> cmdPool = createCommandPool(vk, device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex);
200 const Move<VkCommandBuffer> cmdBuffer = allocateCommandBuffer(vk, device, *cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY);
202 Move<VkRenderPass> renderPass = makeRenderPass(vk, device, FORMAT, VK_FORMAT_UNDEFINED, VK_ATTACHMENT_LOAD_OP_LOAD);
203 Move<VkFramebuffer> framebuffer = makeFramebuffer(vk, device, *renderPass, targetImageView.get(), renderSize.width, renderSize.height);
205 const Move<VkShaderModule> vertexModule = createShaderModule (vk, device, m_context.getBinaryCollection().get("vert1"), 0u);
206 const Move<VkShaderModule> fragmentModule = createShaderModule (vk, device, m_context.getBinaryCollection().get("frag1"), 0u);
208 const Move<VkPipelineLayout> pipelineLayout = makePipelineLayout (vk, device, DE_NULL);
248 const Move<VkPipeline> graphicsPipeline = makeGraphicsPipeline(vk, device, pipelineLayout.get(), vertexModule.get(), DE_NULL, DE_NULL,
255 Move<VkBuffer> resultBuffer = createBuffer(vk, device, &resultBufferCreateInfo);
256 MovePtr<Allocation> resultBufferMemory = allocator.allocate(getBufferMemoryRequirements(vk, device, *resultBuffer), MemoryRequirement::HostVisible);
259 VK_CHECK(vk.bindBufferMemory(device, *resultBuffer, resultBufferMemory->getMemory(), resultBufferMemory->getOffset()));
263 clearColorImage(vk, device, m_context.getUniversalQueue(), m_context.getUniversalQueueFamilyIndex(),
304 submitCommandsAndWait(vk, device, queue, *cmdBuffer);
306 invalidateAlloc(vk, device, *resultBufferMemory);