Lines Matching refs:device
258 const vk::VkDevice device = m_context.getDevice();
272 vk.transitionImageLayoutEXT(device, 1, &transition);
280 vk::submitCommandsAndWait(vk, device, queue, **cmdBuffer);
287 const vk::VkDevice device = m_context.getDevice();
333 vk.copyMemoryToImageEXT(device, ©MemoryToImageInfo);
341 const vk::VkDevice device = m_context.getDevice();
350 const Move<vk::VkCommandPool> cmdPool (createCommandPool(vk, device, vk::VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex));
351 const Move<vk::VkCommandBuffer> cmdBuffer (allocateCommandBuffer(vk, device, *cmdPool, vk::VK_COMMAND_BUFFER_LEVEL_PRIMARY));
424 sparseSampledImage = de::MovePtr<SparseImage>(new SparseImage(vk, device, physicalDevice, vki, createInfo, m_context.getSparseQueue(), alloc, mapVkFormat(createInfo.format)));
429 sampledImageWithMemory = de::MovePtr<ImageWithMemory>(new ImageWithMemory(vk, device, alloc, createInfo, vk::MemoryRequirement::Any));
431 sampledImageWithMemoryCopy = de::MovePtr<ImageWithMemory>(new ImageWithMemory(vk, device, alloc, createInfo, vk::MemoryRequirement::Any));
446 sampledImageView = createImageView(vk, device, &imageViewCreateInfo, NULL);
450 sampledImageViewCopy = createImageView(vk, device, &imageViewCreateInfo, NULL);;
481 outputImage = de::MovePtr<ImageWithMemory>(new ImageWithMemory(vk, device, alloc, createInfo, vk::MemoryRequirement::Any));
494 outputImageView = createImageView(vk, device, &imageViewCreateInfo, NULL);
546 renderPass = createRenderPass(vk, device, &renderPassInfo);
547 framebuffer = makeFramebuffer(vk, device, *renderPass, *outputImageView, renderArea.extent.width, renderArea.extent.height);
553 vk::ShaderWrapper vert = vk::ShaderWrapper(vk, device, m_context.getBinaryCollection().get("vert"));
554 vk::ShaderWrapper frag = vk::ShaderWrapper(vk, device, m_context.getBinaryCollection().get("frag"));
561 const auto descriptorSetLayout (descriptorBuilder.build(vk, device));
562 const vk::PipelineLayoutWrapper pipelineLayout (PIPELINE_CONSTRUCTION_TYPE_MONOLITHIC, vk, device, *descriptorSetLayout);
568 const Move<vk::VkDescriptorPool> descriptorPool = poolBuilder.build(vk, device, vk::VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1);
569 const Move<vk::VkDescriptorSet> descriptorSet (makeDescriptorSet(vk, device, *descriptorPool, *descriptorSetLayout));
592 const vk::Move<vk::VkSampler> sampler = createSampler(vk, device, &samplerParams);
607 GraphicsPipelineWrapper pipeline(vki, vk, physicalDevice, device, deviceExtensions, vk::PIPELINE_CONSTRUCTION_TYPE_MONOLITHIC);
655 const Unique<vk::VkShaderModule> cs(vk::createShaderModule(vk, device, m_context.getBinaryCollection().get("comp"), 0u));
676 computePipeline = createComputePipeline(vk, device, DE_NULL, &pipelineCreateInfo);
680 vk, device, alloc, makeBufferCreateInfo(outputBufferSize, vk::VK_BUFFER_USAGE_TRANSFER_DST_BIT), MemoryRequirement::HostVisible));
723 de::MovePtr<BufferWithMemory> sampledBuffer = de::MovePtr<BufferWithMemory>(new BufferWithMemory(vk, device, alloc, makeBufferCreateInfo(sampledBufferSize, vk::VK_BUFFER_USAGE_STORAGE_BUFFER_BIT | vk::VK_BUFFER_USAGE_TRANSFER_SRC_BIT), MemoryRequirement::HostVisible));
727 flushAlloc(vk, device, bufferAlloc);
764 vk::submitCommandsAndWait(vk, device, queue, *cmdBuffer, false, 1u, semaphoreCount, &semaphore, &waitStages);
784 vk.getImageSubresourceLayout2KHR(device, sampledImage, &subresource2, &subresourceLayout);
810 vk.copyImageToMemoryEXT(device, ©ImageToMemoryInfo);
836 vk.copyMemoryToImageEXT(device, ©MemoryToImageInfo);
852 updateBuilder.update(vk, device);
913 vk::submitCommandsAndWait(vk, device, queue, cmdBuffer.get());
962 vk.copyImageToMemoryEXT(device, ©ImageToMemoryInfo);
1260 const vk::VkDevice device = m_context.getDevice();
1282 const Move <vk::VkCommandPool> cmdPool (createCommandPool(vk, device, &cmdPoolInfo));
1283 const Move <vk::VkCommandBuffer> cmdBuffer (allocateCommandBuffer(vk, device, *cmdPool, vk::VK_COMMAND_BUFFER_LEVEL_PRIMARY));
1315 de::MovePtr<ImageWithMemory> image = de::MovePtr<ImageWithMemory>(new ImageWithMemory(vk, device, alloc, createInfo, vk::MemoryRequirement::HostVisible));
1316 de::MovePtr<ImageWithMemory> copyImage = de::MovePtr<ImageWithMemory>(new ImageWithMemory(vk, device, alloc, createInfo, vk::MemoryRequirement::Any));
1318 de::MovePtr<BufferWithMemory> outputBuffer = de::MovePtr<BufferWithMemory>(new BufferWithMemory(vk, device, alloc, makeBufferCreateInfo(bufferSize, vk::VK_BUFFER_USAGE_TRANSFER_DST_BIT), MemoryRequirement::HostVisible));
1339 de::MovePtr<ImageWithMemory> imageWithoutHostCopy = de::MovePtr<ImageWithMemory>(new ImageWithMemory(vk, device, alloc, createInfo, vk::MemoryRequirement::HostVisible));
1342 vk.getImageMemoryRequirements(device, **image, &hostImageMemoryRequirements);
1343 vk.getImageMemoryRequirements(device, **imageWithoutHostCopy, &memoryRequirements);
1349 // map device memory and initialize
1360 vk.transitionImageLayoutEXT(device, 1, &transition);
1374 vk.transitionImageLayoutEXT(device, 1, &transition);
1402 vk.copyImageToImageEXT(device, ©ImageToImageInfo);
1406 vk.transitionImageLayoutEXT(device, 1, &transition);
1433 vk.copyImageToMemoryEXT(device, ©ImageToMemoryInfo);
1446 vk.transitionImageLayoutEXT(device, 1, &transition);
1461 vk::submitCommandsAndWait(vk, device, queue, cmdBuffer.get());