Lines Matching refs:device
243 const vk::Move<vk::VkDevice> device = createDynamicVertexStateDevice(m_context, queueFamilyIndex, m_pipelineConstructionType);
244 vk::SimpleAllocator allocator (vk, *device, getPhysicalDeviceMemoryProperties(m_context.getInstanceInterface(), m_context.getPhysicalDevice()));
245 const vk::DeviceDriver deviceDriver (vkp, vki, *device, m_context.getUsedApiVersion());
246 const vk::VkQueue queue = getDeviceQueue(deviceDriver, *device, queueFamilyIndex, 0u);
252 vk::ShaderWrapper(vk, *device, m_context.getBinaryCollection().get("vert_0")),
253 vk::ShaderWrapper(vk, *device, m_context.getBinaryCollection().get("vert_1"))
256 const vk::ShaderWrapper fragmentShaderModule = vk::ShaderWrapper(vk, *device, m_context.getBinaryCollection().get("frag"));
286 vk::Move<vk::VkImage> colorImage = (makeImage(vk, *device, makeImageCreateInfo(tcu::IVec2(32, 32), vk::VK_FORMAT_R8G8B8A8_UNORM, vk::VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | vk::VK_IMAGE_USAGE_TRANSFER_SRC_BIT)));
290 const de::UniquePtr<vk::Allocation> colorImageAlloc (bindImage(vk,*device, allocator, *colorImage, vk::MemoryRequirement::Any));
291 vk::Move<vk::VkImageView> colorImageView = (makeImageView(vk,*device, *colorImage, vk::VK_IMAGE_VIEW_TYPE_2D, vk::VK_FORMAT_R8G8B8A8_UNORM, colorSubresourceRange));
340 vk::RenderPassWrapper renderPass = vk::RenderPassWrapper(m_pipelineConstructionType, vk, *device, &renderPassInfo);
361 renderPass.createFramebuffer(vk, *device, &framebufferCreateInfo, { *colorImage });
389 vk::PipelineLayoutWrapper pipelineLayout (m_pipelineConstructionType, vk, *device, &pipelineLayoutInfo);
392 vk::GraphicsPipelineWrapper graphicsPipelines[2] { { instanceInterface, vk, physicalDevice, *device, deviceExtensions, m_pipelineConstructionType}, { instanceInterface, vk, physicalDevice, *device, deviceExtensions, m_pipelineConstructionType} };
430 (makeBuffer(vk,*device, vertexBufferSizeBytes, vk::VK_BUFFER_USAGE_VERTEX_BUFFER_BIT)),
431 (makeBuffer(vk,*device, vertexBufferSizeBytes, vk::VK_BUFFER_USAGE_VERTEX_BUFFER_BIT))
436 (bindBuffer(vk,*device, allocator, *vertexBuffers[0], vk::MemoryRequirement::HostVisible)),
437 (bindBuffer(vk,*device, allocator, *vertexBuffers[1], vk::MemoryRequirement::HostVisible))
455 flushAlloc(vk,*device, *vertexBufferAllocs[i]);
459 const vk::Unique<vk::VkCommandPool> cmdPool (createCommandPool(vk, *device, vk::VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex));
460 const vk::Unique<vk::VkCommandBuffer> cmdBuffer (allocateCommandBuffer(vk,*device, *cmdPool, vk::VK_COMMAND_BUFFER_LEVEL_PRIMARY));
466 const vk::Unique<vk::VkBuffer> colorBuffer (makeBuffer(vk,*device, colorBufferSizeBytes, vk::VK_BUFFER_USAGE_TRANSFER_DST_BIT));
467 const de::UniquePtr<vk::Allocation> colorBufferAlloc (bindBuffer(vk,*device, allocator, *colorBuffer, vk::MemoryRequirement::HostVisible));
490 submitCommandsAndWait(vk,*device, queue, *cmdBuffer);
511 invalidateAlloc(vk,*device, *colorBufferAlloc);