Lines Matching defs:device
130 const VkDevice device,
197 return RenderPassWrapper(pipelineConstructionType, vk, device, &renderPassInfo);
274 const VkDevice device,
302 return createImage(vk, device, &imageParams);
390 const VkDevice device = context.getDevice();
408 const Unique<VkBuffer> colorBuffer (makeBuffer(vk, device, colorBufferSize, VK_BUFFER_USAGE_TRANSFER_DST_BIT));
409 const UniquePtr<Allocation> colorBufferAlloc (bindBuffer(vk, device, allocator, *colorBuffer, MemoryRequirement::HostVisible));
418 const PipelineLayoutWrapper pipelineLayout (caseDef.pipelineConstructionType, vk, device);
420 RenderPassWrapper renderPass (makeRenderPass(vk, device, caseDef.pipelineConstructionType, COLOR_FORMAT, caseDef.numLayers, caseDef.multisample));
422 const ShaderWrapper vertexModule (ShaderWrapper(vk, device, context.getBinaryCollection().get("vert"), 0u));
423 const ShaderWrapper fragmentModule (ShaderWrapper(vk, device, context.getBinaryCollection().get("frag"), 0u));
425 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex));
426 const Unique<VkCommandBuffer> cmdBuffer (makeCommandBuffer(vk, device, *cmdPool));
436 vertexBuffer = makeBuffer(vk, device, vertexBufferSize, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT);
437 vertexBufferAlloc = bindBuffer(vk, device, allocator, *vertexBuffer, MemoryRequirement::HostVisible);
440 flushAlloc(vk, device, *vertexBufferAlloc);
447 colorImage = makeImage(vk, device, VkImageViewCreateFlags(0), getImageType(caseDef.imageType), COLOR_FORMAT,
449 colorImageAlloc = bindImage(vk, device, allocator, *colorImage, MemoryRequirement::Any);
455 msColorImage = makeImage(vk, device, VkImageViewCreateFlags(0), getImageType(caseDef.imageType), COLOR_FORMAT,
457 msColorImageAlloc = bindImage(vk, device, allocator, *msColorImage, MemoryRequirement::Any);
465 colorAttachments.push_back(makeSharedPtr(makeImageView(vk, device, ! caseDef.multisample ? *colorImage : *msColorImage,
470 pipeline.emplace_back(vki, vk, physicalDevice, device, context.getDeviceExtensions(), caseDef.pipelineConstructionType);
476 renderPass.createFramebuffer(vk, device, caseDef.numLayers, &images[0], &attachmentHandles[0],
650 submitCommandsAndWait(vk, device, queue, *cmdBuffer);
654 invalidateAlloc(vk, device, *colorBufferAlloc);
717 RenderPassWrapper makeRenderPassNoAtt (const DeviceInterface& vk, const VkDevice device, const PipelineConstructionType pipelineConstructionType)
750 return RenderPassWrapper(pipelineConstructionType, vk, device, &renderPassInfo);
791 const VkDevice device = context.getDevice();
800 const ShaderWrapper vertexModule (ShaderWrapper (vk, device, context.getBinaryCollection().get("vert"), 0u));
801 const ShaderWrapper fragmentModule (ShaderWrapper (vk, device, context.getBinaryCollection().get("frag"), 0u));
812 const Move<VkImage> image = makeImage(vk, device, VkImageViewCreateFlags(0), VK_IMAGE_TYPE_2D, COLOR_FORMAT, imageDim, imageLayers, imageUsage, false);
814 const MovePtr<Allocation> imageAlloc = bindImage(vk, device, allocator, *image, MemoryRequirement::Any);
815 const Move<VkImageView> imageView = makeImageView(vk, device, *image, VK_IMAGE_VIEW_TYPE_2D, COLOR_FORMAT, imageSubresourceRange);
819 const Unique<VkBuffer> colorBuffer (makeBuffer(vk, device, colorBufferSize, VK_BUFFER_USAGE_TRANSFER_DST_BIT));
820 const UniquePtr<Allocation> colorBufferAlloc (bindBuffer(vk, device, allocator, *colorBuffer, MemoryRequirement::HostVisible));
825 .build(vk, device);
829 .build(vk, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1);
831 const Move<VkDescriptorSet> descriptorSet = makeDescriptorSet(vk, device, *descriptorPool, *descriptorSetLayout);
835 .update(vk, device);
837 const PipelineLayoutWrapper pipelineLayout (caseDef.pipelineConstructionType, vk, device, *descriptorSetLayout);
838 GraphicsPipelineWrapper pipeline (vki, vk, physicalDevice, device, context.getDeviceExtensions(), caseDef.pipelineConstructionType);
839 RenderPassWrapper renderPass = makeRenderPassNoAtt(vk, device, caseDef.pipelineConstructionType);
841 const Unique<VkCommandPool> cmdPool (createCommandPool (vk, device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex));
842 const Unique<VkCommandBuffer> cmdBuffer (makeCommandBuffer (vk, device, *cmdPool));
849 vertexBuffer = makeBuffer(vk, device, vertexBufferSize, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT);
850 vertexBufferAlloc = bindBuffer(vk, device, allocator, *vertexBuffer, MemoryRequirement::HostVisible);
852 flushAlloc(vk, device, *vertexBufferAlloc);
858 renderPass.createFramebuffer(vk, device, 0, DE_NULL, renderSize.x(), renderSize.y());
942 submitCommandsAndWait(vk, device, queue, *cmdBuffer);
946 invalidateAlloc(vk, device, *colorBufferAlloc);
961 const VkDevice device,
1021 return RenderPassWrapper(pipelineConstructionType, vk, device, &renderPassInfo);
1030 const VkDevice device = context.getDevice();
1072 const PipelineLayoutWrapper pipelineLayout (caseDef.pipelineConstructionType, vk, device);
1073 GraphicsPipelineWrapper pipeline (vki, vk, physicalDevice, device, context.getDeviceExtensions(), caseDef.pipelineConstructionType);
1074 RenderPassWrapper renderPass (makeRenderPassMultiAttachments(vk, device, caseDef.pipelineConstructionType, COLOR_FORMAT, numRenderTargets, caseDef.multisample));
1076 const ShaderWrapper vertexModule (ShaderWrapper(vk, device, context.getBinaryCollection().get("vert"), 0u));
1077 const ShaderWrapper fragmentModule (ShaderWrapper(vk, device, context.getBinaryCollection().get("frag"), 0u));
1079 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex));
1080 const Unique<VkCommandBuffer> cmdBuffer (makeCommandBuffer(vk, device, *cmdPool));
1097 colorBuffers[renderTargetIdx] = makeBuffer(vk, device, colorBufferSize, VK_BUFFER_USAGE_TRANSFER_DST_BIT);
1098 colorBufferAllocs[renderTargetIdx] = bindBuffer(vk, device, allocator, *colorBuffers[renderTargetIdx], MemoryRequirement::HostVisible);
1106 vertexBuffer = makeBuffer(vk, device, vertexBufferSize, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT);
1107 vertexBufferAlloc = bindBuffer(vk, device, allocator, *vertexBuffer, MemoryRequirement::HostVisible);
1110 flushAlloc(vk, device, *vertexBufferAlloc);
1119 colorImages[renderTargetIdx] = makeImage(vk, device, VkImageViewCreateFlags(0), getImageType(caseDef.imageType), COLOR_FORMAT,
1121 colorImageAllocs[renderTargetIdx] = bindImage(vk, device, allocator, *colorImages[renderTargetIdx], MemoryRequirement::Any);
1127 msColorImages[renderTargetIdx] = makeImage(vk, device, VkImageViewCreateFlags(0), getImageType(caseDef.imageType), COLOR_FORMAT, attachmentSize, 1, msImageUsage, true);
1128 msColorImageAllocs[renderTargetIdx] = bindImage(vk, device, allocator, *msColorImages[renderTargetIdx], MemoryRequirement::Any);
1135 colorAttachments.push_back(makeSharedPtr(makeImageView(vk, device, ! caseDef.multisample ? *colorImages[renderTargetIdx] : *msColorImages[renderTargetIdx], imageViewType, COLOR_FORMAT, range)));
1143 renderPass.createFramebuffer(vk, device, numRenderTargets, &images[0], &attachmentHandles[0], static_cast<deUint32>(caseDef.renderSize.x()), static_cast<deUint32>(caseDef.renderSize.y()));
1310 submitCommandsAndWait(vk, device, queue, *cmdBuffer);
1332 invalidateAlloc(vk, device, *colorBufferAllocs[renderTargetIdx]);
1398 const VkDevice device,
1472 return RenderPassWrapper(pipelineConstructionType, vk, device, &renderPassInfo);
1480 const VkDevice device = context.getDevice();
1502 .build(vk, device);
1506 .build(vk, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1);
1508 const Move<VkDescriptorSet> descriptorSet = makeDescriptorSet(vk, device, *descriptorPool, *descriptorSetLayout);
1510 const PipelineLayoutWrapper pipelineLayout (caseDef.pipelineConstructionType, vk, device, *descriptorSetLayout);
1511 GraphicsPipelineWrapper pipeline (vki, vk, physicalDevice, device, context.getDeviceExtensions(), caseDef.pipelineConstructionType);
1512 RenderPassWrapper renderPass (makeRenderPassInputResolveSameAttachment(vk, device, caseDef.pipelineConstructionType, COLOR_FORMAT));
1514 const ShaderWrapper vertexModule (ShaderWrapper(vk, device, context.getBinaryCollection().get("vert"), 0u));
1515 const ShaderWrapper fragmentModule (ShaderWrapper(vk, device, context.getBinaryCollection().get("frag"), 0u));
1517 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex));
1518 const Unique<VkCommandBuffer> cmdBuffer (makeCommandBuffer(vk, device, *cmdPool));
1527 auto colorBuffer = makeBuffer(vk, device, colorBufferSize, VK_BUFFER_USAGE_TRANSFER_DST_BIT);
1528 MovePtr<Allocation> colorBufferAlloc = bindBuffer(vk, device, allocator, *colorBuffer, MemoryRequirement::HostVisible);
1535 vertexBuffer = makeBuffer(vk, device, vertexBufferSize, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT);
1536 vertexBufferAlloc = bindBuffer(vk, device, allocator, *vertexBuffer, MemoryRequirement::HostVisible);
1539 flushAlloc(vk, device, *vertexBufferAlloc);
1544 Move<VkImage> colorImage = makeImage(vk, device, VkImageViewCreateFlags(0), getImageType(caseDef.imageType), COLOR_FORMAT,
1546 MovePtr<Allocation> colorImageAlloc = bindImage(vk, device, allocator, *colorImage, MemoryRequirement::Any);
1549 Move<VkImage> msColorImage = makeImage(vk, device, VkImageViewCreateFlags(0), getImageType(caseDef.imageType), COLOR_FORMAT, attachmentSize, 1, msImageUsage, true);
1550 MovePtr<Allocation> msColorImageAlloc = bindImage(vk, device, allocator, *msColorImage, MemoryRequirement::Any);
1553 colorAttachments.push_back(makeSharedPtr(makeImageView(vk, device, *msColorImage, imageViewType, COLOR_FORMAT, range)));
1557 colorAttachments.push_back(makeSharedPtr(makeImageView(vk, device, *colorImage, imageViewType, COLOR_FORMAT, range)));
1564 .update(vk, device);
1569 renderPass.createFramebuffer(vk, device, 2u, &images[0], &attachmentHandles[0], static_cast<deUint32>(caseDef.renderSize.x()), static_cast<deUint32>(caseDef.renderSize.y()));
1704 submitCommandsAndWait(vk, device, queue, *cmdBuffer);
1713 invalidateAlloc(vk, device, *colorBufferAlloc);
1739 const VkDevice device = context.getDevice();
1740 const Move<VkCommandPool> cmdPool (createCommandPool(vk, device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, context.getUniversalQueueFamilyIndex()));
1741 const Move<VkCommandBuffer> cmdBuffer (makeCommandBuffer(vk, device, *cmdPool));
1776 RenderPassWrapper renderPass (pipelineConstructionType, vk, device, &renderPassCreateInfo);
1791 renderPass.createFramebuffer(vk, device, &framebufferCreateInfo, VK_NULL_HANDLE);