Lines Matching defs:device
213 const VkDevice device = m_context.getDevice();
217 const Unique<VkShaderModule> shaderModule (createShaderModule(vk, device, m_context.getBinaryCollection().get("comp"), 0u));
218 const Unique<VkPipelineLayout> pipelineLayout (makePipelineLayout(vk, device, descriptorSetLayout));
219 const Unique<VkPipeline> pipeline (makeComputePipeline(vk, device, *pipelineLayout, *shaderModule));
231 submitCommandsAndWait(vk, device, queue, cmdBuffer);
244 const VkDevice device = m_context.getDevice();
248 const ShaderWrapper vertShader (ShaderWrapper(vk, device, m_context.getBinaryCollection().get("vert"), 0u));
249 const ShaderWrapper fragShader (ShaderWrapper(vk, device, m_context.getBinaryCollection().get("frag"), 0u));
250 const PipelineLayoutWrapper pipelineLayout (m_testParameters.pipelineConstructionType, vk, device, descriptorSetLayout);
251 RenderPassWrapper renderPass (m_testParameters.pipelineConstructionType, vk, device);
290 vk::GraphicsPipelineWrapper graphicsPipeline (vki, vk, physicalDevice, device, m_context.getDeviceExtensions(), m_testParameters.pipelineConstructionType, 0u);
306 renderPass.createFramebuffer(vk, device, 0u, DE_NULL, DE_NULL, testMipLevelSize.x(), testMipLevelSize.y());
318 device,
323 flushAlloc(vk, device, vertexBuffer.getAllocation());
341 submitCommandsAndWait(vk, device, queue, cmdBuffer);
347 const VkDevice device = m_context.getDevice();
358 const BufferWithMemory outputBuffer (vk, device, allocator, makeBufferCreateInfo(bufferSize, VK_BUFFER_USAGE_TRANSFER_DST_BIT), MemoryRequirement::HostVisible);
372 inputImageBuffer = de::MovePtr<BufferWithMemory>(new BufferWithMemory(vk, device, allocator, bufferCreateInfo, MemoryRequirement::HostVisible));
376 flushAlloc(vk, device, inputImageBuffer->getAllocation());
401 ImageWithMemory testImage (vk, device, allocator, imageCreateInfo, MemoryRequirement::Any);
405 const Unique<VkImageView> imageView (makeImageView(vk, device, *testImage, VK_IMAGE_VIEW_TYPE_2D, m_testParameters.imageFormat, subresourceRange));
434 resultImage = MovePtr<ImageWithMemory>(new ImageWithMemory(vk, device, allocator, resultImageCreateInfo, MemoryRequirement::Any));
436 resultImageView = makeImageView(vk, device, **resultImage, VK_IMAGE_VIEW_TYPE_2D, m_testParameters.imageFormat, resultImgSubresourceRange);
459 sampler = createSampler(vk, device, &samplerCreateInfo);
496 clearColorImage(vk, device, queue, m_context.getUniversalQueueFamilyIndex(), **resultImage, tcu::Vec4(0,0,0,1), VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_GENERAL, pipelineStage, 0u, 1u);
501 clearColorImage(vk, device, queue, m_context.getUniversalQueueFamilyIndex(), testImage.get(), tcu::Vec4(0,0,0,1), VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_GENERAL, pipelineStage, 0u, 1u, 0u, mipLevelCount);
505 const Unique<VkCommandPool> cmdPool (makeCommandPool(vk, device, queueFamilyIndex));
506 const Unique<VkCommandBuffer> cmdBuffer (allocateCommandBuffer(vk, device, *cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY));
519 const Move<VkDescriptorSetLayout> descriptorSetLayout (descriptorSetLayoutBuilder.build(vk, device));
520 const Move<VkDescriptorPool> descriptorPool (descriptorPoolBuilder.build(vk, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u));
521 const Unique<VkDescriptorSet> descriptorSet (makeDescriptorSet(vk, device, *descriptorPool, *descriptorSetLayout));
549 descriptorSetUpdateBuilder.update(vk, device);
565 invalidateAlloc(vk, device, outputBufferAllocation);