Lines Matching defs:device

276 	const auto			device				= m_context.getDevice();
304 ImageWithMemory colorBuffer (vkd, device, alloc, colorBufferInfo, MemoryRequirement::Any);
307 const auto colorBufferView = makeImageView(vkd, device, colorBuffer.get(), VK_IMAGE_VIEW_TYPE_2D, m_format, colorSRR);
312 BufferWithMemory verifBuffer (vkd, device, alloc, verifBufferInfo, MemoryRequirement::HostVisible);
316 RenderPassWrapper renderPass (m_pipelineConstructionType, vkd, device, m_format);
317 renderPass.createFramebuffer(vkd, device, colorBuffer.get(), colorBufferView.get(), m_extent.width, m_extent.height);
321 const auto vertModule = ShaderWrapper(vkd, device, binaries.get("vert"));
322 const auto fragModule = ShaderWrapper(vkd, device, binaries.get("frag"));
327 tscModule = ShaderWrapper(vkd, device, binaries.get("tsc"));
328 tseModule = ShaderWrapper(vkd, device, binaries.get("tse"));
354 const PipelineLayoutWrapper pipelineLayout (m_pipelineConstructionType, vkd, device);
370 const auto cmdPool = makeCommandPool(vkd, device, qIndex);
371 const auto cmdBufferPtr = allocateCommandBuffer(vkd, device, cmdPool.get(), VK_COMMAND_BUFFER_LEVEL_PRIMARY);
397 submitCommandsAndWait(vkd, device, queue, cmdBuffer);
403 invalidateAlloc(vkd, device, verifBufferAlloc);
653 const auto device = m_context.getDevice();
672 const auto goodVertModule = createShaderModule(vkd, device, binaries.get("vert"));
673 const auto goodTescModule = (m_params.useTessShaders ? createShaderModule(vkd, device, binaries.get("tesc")) : Move<VkShaderModule>());
674 const auto goodTeseModule = (m_params.useTessShaders ? createShaderModule(vkd, device, binaries.get("tese")) : Move<VkShaderModule>());
675 const auto goodGeomModule = (m_params.useGeomShader ? createShaderModule(vkd, device, binaries.get("geom")) : Move<VkShaderModule>());
676 const auto goodFragModule = createShaderModule(vkd, device, binaries.get("frag"));
684 const auto badVertModule = createShaderModule(vkd, device, binaries.get("bad_vert"));
685 const auto badTescModule = (m_params.useTessShaders ? createShaderModule(vkd, device, binaries.get("bad_tesc")) : Move<VkShaderModule>());
686 const auto badTeseModule = (m_params.useTessShaders ? createShaderModule(vkd, device, binaries.get("bad_tese")) : Move<VkShaderModule>());
687 const auto badGeomModule = (m_params.useGeomShader ? createShaderModule(vkd, device, binaries.get("bad_geom")) : Move<VkShaderModule>());
688 const auto badFragModule = createShaderModule(vkd, device, binaries.get("bad_frag"));
715 ImageWithMemory colorAttachment (vkd, device, alloc, colorAttachmentCreateInfo, MemoryRequirement::Any);
718 const auto colorAttachmentView = makeImageView(vkd, device, colorAttachment.get(), VK_IMAGE_VIEW_TYPE_2D, colorFormat, colorSRR);
723 BufferWithMemory verificationBuffer (vkd, device, alloc, verificationBufferCreateInfo, MemoryRequirement::HostVisible);
727 RenderPassWrapper renderPass (m_params.pipelineConstructionType, vkd, device, colorFormat);
728 renderPass.createFramebuffer(vkd, device, *colorAttachment, colorAttachmentView.get(), colorExtent.width, colorExtent.height);
731 const auto pipelineLayout = makePipelineLayout(vkd, device);
885 vertexInputLib = createGraphicsPipeline(vkd, device, DE_NULL, &vertexInputPipelineInfo);
913 preRasterShaderLib = createGraphicsPipeline(vkd, device, DE_NULL, &preRasterShaderPipelineInfo);
937 fragShaderLib = createGraphicsPipeline(vkd, device, DE_NULL, &fragShaderPipelineInfo);
955 fragOutputLib = createGraphicsPipeline(vkd, device, DE_NULL, &fragOutputPipelineInfo);
977 const auto pipeline = createGraphicsPipeline(vkd, device, DE_NULL, &linkedPipelineInfo);
980 const auto cmdPool = makeCommandPool(vkd, device, queueIndex);
981 const auto cmdBufferPtr = allocateCommandBuffer(vkd, device, cmdPool.get(), VK_COMMAND_BUFFER_LEVEL_PRIMARY);
1005 submitCommandsAndWait(vkd, device, queue, cmdBuffer);
1008 invalidateAlloc(vkd, device, verificationBufferAlloc);
1125 const auto device = m_context.getDevice();
1135 vk::GraphicsPipelineWrapper pipeline1(vki, vkd, physDevice, device, m_context.getDeviceExtensions(), type);
1159 colorAttachment = de::MovePtr<vk::ImageWithMemory>(new vk::ImageWithMemory(vkd, device, alloc, imageCreateInfo, vk::MemoryRequirement::Any));
1160 auto colorAttachmentView = vk::makeImageView(vkd, device, colorAttachment->get(), vk::VK_IMAGE_VIEW_TYPE_2D, imageFormat, subresourceRange);
1166 auto descriptorSetLayout = layoutBuilder.build(vkd, device);
1167 vk::PipelineLayoutWrapper graphicsPipelineLayout (type, vkd, device, descriptorSetLayout.get());
1172 const auto descriptorPool = poolBuilder.build(vkd, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1);
1173 const auto descriptorSetBuffer = makeDescriptorSet(vkd, device, descriptorPool.get(), descriptorSetLayout.get());
1183 updater.update(vkd, device);
1185 auto vtxshader = ShaderWrapper(vkd, device, m_context.getBinaryCollection().get("vert"));
1186 auto frgshader = ShaderWrapper(vkd, device, m_context.getBinaryCollection().get("frag"));
1224 auto commandPool = createCommandPool(vkd, device, vk::VK_COMMAND_POOL_CREATE_TRANSIENT_BIT, qIndex);
1225 auto commandBuffer = vk::allocateCommandBuffer(vkd, device, commandPool.get(), vk::VK_COMMAND_BUFFER_LEVEL_PRIMARY);
1282 vk::submitCommandsAndWait(vkd, device, m_context.getUniversalQueue(), commandBuffer.get());
1288 const auto device = m_context.getDevice();
1303 BufferWithMemory indexBufferMonolithic (vkd, device, alloc, indexCreateInfo, MemoryRequirement::HostVisible);
1304 BufferWithMemory valuesBufferMonolithic (vkd, device, alloc, valuesCreateInfo, MemoryRequirement::HostVisible);
1305 BufferWithMemory indexBufferGPL (vkd, device, alloc, indexCreateInfo, MemoryRequirement::HostVisible);
1306 BufferWithMemory valuesBufferGPL (vkd, device, alloc, valuesCreateInfo, MemoryRequirement::HostVisible);
1323 flushAlloc(vkd, device, indexBufferMonolithicAlloc);
1324 flushAlloc(vkd, device, valuesBufferMonolithicAlloc);
1325 flushAlloc(vkd, device, indexBufferGPLAlloc);
1326 flushAlloc(vkd, device, valuesBufferGPLAlloc);
1331 invalidateAlloc(vkd, device, indexBufferMonolithicAlloc);
1332 invalidateAlloc(vkd, device, valuesBufferMonolithicAlloc);
1333 invalidateAlloc(vkd, device, indexBufferGPLAlloc);
1334 invalidateAlloc(vkd, device, valuesBufferGPLAlloc);
1483 const auto device = m_context.getDevice();
1511 ImageWithMemory colorBuffer (vkd, device, alloc, colorBufferInfo, MemoryRequirement::Any);
1514 const auto colorBufferView = makeImageView(vkd, device, colorBuffer.get(), VK_IMAGE_VIEW_TYPE_2D, m_format, colorSRR);
1519 BufferWithMemory verifBuffer (vkd, device, alloc, verifBufferInfo, MemoryRequirement::HostVisible);
1523 RenderPassWrapper renderPass (m_config.construction, vkd, device, m_format);
1524 renderPass.createFramebuffer(vkd, device, colorBuffer.get(), colorBufferView.get(), m_extent.width, m_extent.height);
1528 const auto vertModule = ShaderWrapper(vkd, device, binaries.get("vert"));
1529 const auto fragModule = ShaderWrapper(vkd, device, binaries.get("frag"));
1568 descriptorSetLayouts.emplace_back(layoutBuilder.build(vkd, device));
1573 const vk::PipelineLayoutWrapper pipelineLayout (m_config.construction, vkd, device, descriptorSetLayouts);
1576 const auto descriptorPool = poolBuilder.build(vkd, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, setAndDescriptorCount);
1581 descriptorSetsWrap.emplace_back(makeDescriptorSet(vkd, device, descriptorPool.get(), setLayout.get()));
1593 auto buffer = std::unique_ptr<vk::BufferWithMemory>(new vk::BufferWithMemory(vkd, device, alloc, outBufferInfo, vk::MemoryRequirement::HostVisible));
1597 flushAlloc(vkd, device, bufferAlloc);
1606 updater.update(vkd, device);
1623 const auto cmdPool = makeCommandPool(vkd, device, qIndex);
1624 const auto cmdBufferPtr = allocateCommandBuffer(vkd, device, cmdPool.get(), VK_COMMAND_BUFFER_LEVEL_PRIMARY);
1656 submitCommandsAndWait(vkd, device, queue, cmdBuffer);
1661 invalidateAlloc(vkd, device, verifBufferAlloc);