Lines Matching defs:device

136 	const VkDevice			device				= context.getDevice();
151 const BufferWithMemory vertexBuffer(vk, device, allocator,
161 flushAlloc(vk, device, alloc);
170 const ImageWithMemory colorAttachmentImage (vk, device, allocator,
177 const BufferWithMemory colorBuffer (vk, device, allocator, makeBufferCreateInfo(colorBufferSizeBytes, VK_BUFFER_USAGE_TRANSFER_DST_BIT), MemoryRequirement::HostVisible);
181 const BufferWithMemory tessLevelsBuffer(vk, device, allocator,
188 .build(vk, device));
192 .build(vk, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u));
194 const Unique<VkDescriptorSet> descriptorSet(makeDescriptorSet(vk, device, *descriptorPool, *descriptorSetLayout));
200 .update(vk, device);
204 const Unique<VkImageView> colorAttachmentView (makeImageView(vk, device, *colorAttachmentImage, VK_IMAGE_VIEW_TYPE_2D, colorFormat, colorImageSubresourceRange));
205 const Unique<VkRenderPass> renderPass (makeRenderPass(vk, device, colorFormat));
206 const Unique<VkFramebuffer> framebuffer (makeFramebuffer(vk, device, *renderPass, *colorAttachmentView, renderSize.x(), renderSize.y()));
207 const Unique<VkPipelineLayout> pipelineLayout (makePipelineLayout(vk, device, *descriptorSetLayout));
208 const Unique<VkCommandPool> cmdPool (makeCommandPool(vk, device, queueFamilyIndex));
209 const Unique<VkCommandBuffer> cmdBuffer (allocateCommandBuffer(vk, device, *cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY));
215 .setShader (vk, device, VK_SHADER_STAGE_VERTEX_BIT, context.getBinaryCollection().get("vert"), DE_NULL)
216 .setShader (vk, device, VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT, context.getBinaryCollection().get("tesc"), DE_NULL)
217 .setShader (vk, device, VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT, context.getBinaryCollection().get("tese"), DE_NULL)
218 .setShader (vk, device, VK_SHADER_STAGE_FRAGMENT_BIT, context.getBinaryCollection().get("frag"), DE_NULL)
219 .build (vk, device, *pipelineLayout, *renderPass));
238 flushAlloc(vk, device, alloc);
282 submitCommandsAndWait(vk, device, queue, *cmdBuffer);
287 invalidateAlloc(vk, device, colorBufferAlloc);
784 ImageWithBuffer referenceBuffer (ctx.vkd, ctx.device, ctx.allocator, vkExtent, colorFormat, colorUsage, imageType, colorSRR);
785 ImageWithBuffer resultBuffer (ctx.vkd, ctx.device, ctx.allocator, vkExtent, colorFormat, colorUsage, imageType, colorSRR);
800 BufferWithMemory vertexBuffer (ctx.vkd, ctx.device, ctx.allocator, vertexBufferInfo, MemoryRequirement::HostVisible);
806 flushAlloc(ctx.vkd, ctx.device, vertexBufferAlloc);
812 const auto pipelineLayout = makePipelineLayout(ctx.vkd, ctx.device, VK_NULL_HANDLE, &pcRange);
814 const auto renderPass = makeRenderPass(ctx.vkd, ctx.device, colorFormat);
817 const auto framebuffer0 = makeFramebuffer(ctx.vkd, ctx.device, *renderPass, referenceBuffer.getImageView(), vkExtent.width, vkExtent.height);
818 const auto framebuffer1 = makeFramebuffer(ctx.vkd, ctx.device, *renderPass, resultBuffer.getImageView(), vkExtent.width, vkExtent.height);
826 const auto vertModule = createShaderModule(ctx.vkd, ctx.device, binaries.get("vert"));
827 const auto tescModule = createShaderModule(ctx.vkd, ctx.device, binaries.get("tesc"));
828 const auto teseModule0 = createShaderModule(ctx.vkd, ctx.device, binaries.get("tese0"));
829 const auto teseModule1 = createShaderModule(ctx.vkd, ctx.device, binaries.get("tese1"));
830 const auto geomModule = (m_params.geometryShader ? createShaderModule(ctx.vkd, ctx.device, binaries.get("geom")) : Move<VkShaderModule>());
831 const auto fragModule = createShaderModule(ctx.vkd, ctx.device, binaries.get("frag"));
897 const auto pipeline0 = makeGraphicsPipeline(ctx.vkd, ctx.device, *pipelineLayout,
904 const auto pipeline1 = makeGraphicsPipeline(ctx.vkd, ctx.device, *pipelineLayout,
909 const auto cmdPool = makeCommandPool(ctx.vkd, ctx.device, ctx.qfIndex);
910 const auto cmdBufferRef = allocateCommandBuffer(ctx.vkd, ctx.device, *cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY);
911 const auto cmdBufferRes = allocateCommandBuffer(ctx.vkd, ctx.device, *cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY);
929 submitCommandsAndWait(ctx.vkd, ctx.device, ctx.queue, *cmdBufferRef);
948 submitCommandsAndWait(ctx.vkd, ctx.device, ctx.queue, *cmdBufferRes);
950 invalidateAlloc(ctx.vkd, ctx.device, referenceBuffer.getBufferAllocation());
951 invalidateAlloc(ctx.vkd, ctx.device, resultBuffer.getBufferAllocation());