Lines Matching defs:device
1610 const VkDevice device = m_context.getDevice();
1660 TCU_THROW(NotSupportedError, "Storage buffer size larger than device limits");
1665 vk, device, allocator, makeBufferCreateInfo(sizes[i], VK_BUFFER_USAGE_STORAGE_BUFFER_BIT|VK_BUFFER_USAGE_TRANSFER_DST_BIT|VK_BUFFER_USAGE_TRANSFER_SRC_BIT),
1671 return tcu::TestStatus(QP_TEST_RESULT_QUALITY_WARNING, "Failed device memory allocation " + de::toString(sizes[i]) + " bytes");
1694 vk::Unique<vk::VkDescriptorSetLayout> descriptorSetLayout(layoutBuilder.build(vk, device));
1698 .build(vk, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u));
1699 vk::Unique<vk::VkDescriptorSet> descriptorSet (makeDescriptorSet(vk, device, *descriptorPool, *descriptorSetLayout));
1735 Move<VkPipelineLayout> pipelineLayout = createPipelineLayout(vk, device, &pipelineLayoutCreateInfo, NULL);
1739 flushAlloc(vk, device, buffers[0]->getAllocation());
1740 flushAlloc(vk, device, buffers[1]->getAllocation());
1741 flushAlloc(vk, device, buffers[2]->getAllocation());
1758 const Unique<VkShaderModule> shader (createShaderModule(vk, device, m_context.getBinaryCollection().get("test"), 0));
1780 Move<VkPipeline> pipeline = createComputePipeline(vk, device, DE_NULL, &pipelineCreateInfo, NULL);
1783 Move<VkCommandPool> cmdPool = createCommandPool(vk, device, vk::VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, m_context.getUniversalQueueFamilyIndex());
1784 Move<VkCommandBuffer> cmdBuffer = allocateCommandBuffer(vk, device, *cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY);
1794 setUpdateBuilder.update(vk, device);
1809 submitCommandsAndWait(vk, device, queue, cmdBuffer.get());
1811 invalidateAlloc(vk, device, buffers[1]->getAllocation());
1812 invalidateAlloc(vk, device, buffers[2]->getAllocation());
1832 TCU_THROW(NotSupportedError, "Storage buffer size larger than device limits");
1837 vk, device, allocator, makeBufferCreateInfo(sizes[1], VK_BUFFER_USAGE_STORAGE_BUFFER_BIT|VK_BUFFER_USAGE_TRANSFER_DST_BIT|VK_BUFFER_USAGE_TRANSFER_SRC_BIT),
1843 return tcu::TestStatus(QP_TEST_RESULT_QUALITY_WARNING, "Failed device memory allocation " + de::toString(sizes[1]) + " bytes");
1852 setUpdateBuilder2.update(vk, device);
1855 flushAlloc(vk, device, buffers[1]->getAllocation());
1870 submitCommandsAndWait(vk, device, queue, cmdBuffer.get());
1872 invalidateAlloc(vk, device, buffers[1]->getAllocation());