Lines Matching defs:device

80 	const VkDevice			device				= context.getDevice();
87 const BufferWithMemory vertexBuffer(vk, device, allocator,
94 flushAlloc(vk, device, alloc);
103 const ImageWithMemory colorAttachmentImage (vk, device, allocator,
110 const BufferWithMemory colorBuffer (vk, device, allocator, makeBufferCreateInfo(colorBufferSizeBytes, VK_BUFFER_USAGE_TRANSFER_DST_BIT), MemoryRequirement::HostVisible);
114 const Unique<VkImageView> colorAttachmentView (makeImageView (vk, device, *colorAttachmentImage, VK_IMAGE_VIEW_TYPE_2D, colorFormat, colorImageSubresourceRange));
115 const Unique<VkRenderPass> renderPass (makeRenderPass (vk, device, colorFormat));
116 const Unique<VkFramebuffer> framebuffer (makeFramebuffer (vk, device, *renderPass, *colorAttachmentView, renderSize.x(), renderSize.y()));
117 const Unique<VkPipelineLayout> pipelineLayout (makePipelineLayout (vk, device));
118 const Unique<VkCommandPool> cmdPool (makeCommandPool (vk, device, queueFamilyIndex));
119 const Unique<VkCommandBuffer> cmdBuffer (allocateCommandBuffer (vk, device, *cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY));
125 .setShader (vk, device, VK_SHADER_STAGE_VERTEX_BIT, context.getBinaryCollection().get("vert"), DE_NULL)
126 .setShader (vk, device, VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT, context.getBinaryCollection().get("tesc"), DE_NULL)
127 .setShader (vk, device, VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT, context.getBinaryCollection().get("tese"), DE_NULL)
128 .setShader (vk, device, VK_SHADER_STAGE_FRAGMENT_BIT, context.getBinaryCollection().get("frag"), DE_NULL)
129 .build (vk, device, *pipelineLayout, *renderPass));
175 submitCommandsAndWait(vk, device, queue, *cmdBuffer);
180 invalidateAlloc(vk, device, colorBufferAlloc);