Lines Matching defs:vkDevice

149 	const VkDevice				vkDevice			= context.getDevice();
151 SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(context.getInstanceInterface(), context.getPhysicalDevice()));
175 m_colorImage = createImage(vk, vkDevice, &colorImageParams);
178 m_colorImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_colorImage), MemoryRequirement::Any);
179 VK_CHECK(vk.bindImageMemory(vkDevice, *m_colorImage, m_colorImageAlloc->getMemory(), m_colorImageAlloc->getOffset()));
196 m_resultBuffer = createBuffer(vk, vkDevice, &bufferParams);
197 m_resultBufferAlloc = memAlloc.allocate(getBufferMemoryRequirements(vk, vkDevice, *m_resultBuffer), MemoryRequirement::HostVisible);
199 VK_CHECK(vk.bindBufferMemory(vkDevice, *m_resultBuffer, m_resultBufferAlloc->getMemory(), m_resultBufferAlloc->getOffset()));
216 m_colorAttachmentView = createImageView(vk, vkDevice, &colorAttachmentViewParams);
267 m_renderPass = createRenderPass(vk, vkDevice, &renderPassParams);
290 m_framebuffer = createFramebuffer(vk, vkDevice, &framebufferParams);
315 m_descriptorSetLayout = createDescriptorSetLayout(vk, vkDevice, &descriptorLayoutParams);
334 m_uniformBuffer = createBuffer(vk, vkDevice, &uniformBufferParams);
335 m_uniformBufferAlloc = memAlloc.allocate(getBufferMemoryRequirements(vk, vkDevice, *m_uniformBuffer), MemoryRequirement::HostVisible);
337 VK_CHECK(vk.bindBufferMemory(vkDevice, *m_uniformBuffer, m_uniformBufferAlloc->getMemory(), 0));
351 m_uniformBufferView = createBufferView(vk, vkDevice, &viewInfo);
371 m_descriptorPool = createDescriptorPool(vk, vkDevice, &descriptorPoolParams);
381 m_descriptorSet = allocateDescriptorSet(vk, vkDevice, &descriptorSetParams);
399 vk.updateDescriptorSets(vkDevice, DE_LENGTH_OF_ARRAY(writeDescritporSets), writeDescritporSets, 0u, DE_NULL);
415 m_pipelineLayout = createPipelineLayout(vk, vkDevice, &pipelineLayoutParams);
420 m_vertexShaderModule = createShaderModule(vk, vkDevice, m_context.getBinaryCollection().get("vert"), 0);
421 m_fragmentShaderModule = createShaderModule(vk, vkDevice, m_context.getBinaryCollection().get("frag"), 0);
591 m_graphicsPipelines = createGraphicsPipeline(vk, vkDevice, DE_NULL, &graphicsPipelineParams);
610 m_vertexBuffer = createBuffer(vk, vkDevice, &vertexBufferParams);
611 m_vertexBufferAlloc = memAlloc.allocate(getBufferMemoryRequirements(vk, vkDevice, *m_vertexBuffer), MemoryRequirement::HostVisible);
613 VK_CHECK(vk.bindBufferMemory(vkDevice, *m_vertexBuffer, m_vertexBufferAlloc->getMemory(), m_vertexBufferAlloc->getOffset()));
617 flushMappedMemoryRange(vk, vkDevice, m_vertexBufferAlloc->getMemory(), m_vertexBufferAlloc->getOffset(), vertexDataSize);
630 m_cmdPool = createCommandPool(vk, vkDevice, &cmdPoolParams);
673 m_cmdBuffer = allocateCommandBuffer(vk, vkDevice, &cmdBufferParams);
772 m_fence = createFence(vk, vkDevice, &fenceParams);
779 const VkDevice vkDevice = m_context.getDevice();
783 invalidateMappedMemoryRange(vk, vkDevice, m_resultBufferAlloc->getMemory(), m_resultBufferAlloc->getOffset(), m_pixelDataSize);
806 const VkDevice vkDevice = m_context.getDevice();
821 VK_CHECK(vk.resetFences(vkDevice, 1, &m_fence.get()));
823 VK_CHECK(vk.waitForFences(vkDevice, 1, &m_fence.get(), true, ~(0ull) /* infinity */));
839 VK_CHECK(vk.resetFences(vkDevice, 1, &m_fence.get()));
841 VK_CHECK(vk.waitForFences(vkDevice, 1, &m_fence.get(), true, ~(0ull) /* infinity */));