Lines Matching refs:device

86 static bool enumerateDeviceExtensions(VkPhysicalDevice device,  in enumerateDeviceExtensions()  argument
91 result = vkEnumerateDeviceExtensionProperties(device, nullptr, &count, nullptr); in enumerateDeviceExtensions()
95 result = vkEnumerateDeviceExtensionProperties(device, nullptr, &count, extensions->data()); in enumerateDeviceExtensions()
258 if (mDeviceInfo->device()) { in ~SwapchainInfo()
259 vkDeviceWaitIdle(mDeviceInfo->device()); in ~SwapchainInfo()
260 vkDestroySwapchainKHR(mDeviceInfo->device(), mSwapchain, nullptr); in ~SwapchainInfo()
339 VK_CALL(vkCreateSwapchainKHR(mDeviceInfo->device(), &swapchainCreateInfo, nullptr, in init()
342 VK_CALL(vkGetSwapchainImagesKHR(mDeviceInfo->device(), mSwapchain, &mSwapchainLength, nullptr)); in init()
363 if (mDeviceInfo->device()) { in ~Renderer()
364 vkDeviceWaitIdle(mDeviceInfo->device()); in ~Renderer()
365 vkDestroyShaderModule(mDeviceInfo->device(), mVertexShader, nullptr); in ~Renderer()
366 vkDestroyShaderModule(mDeviceInfo->device(), mFragmentShader, nullptr); in ~Renderer()
367 vkDestroyFence(mDeviceInfo->device(), mFence, nullptr); in ~Renderer()
368 vkDestroySemaphore(mDeviceInfo->device(), mSemaphore, nullptr); in ~Renderer()
370 vkFreeCommandBuffers(mDeviceInfo->device(), mCommandPool, mCommandBuffers.size(), in ~Renderer()
373 vkDestroyCommandPool(mDeviceInfo->device(), mCommandPool, nullptr); in ~Renderer()
374 vkDestroyPipeline(mDeviceInfo->device(), mPipeline, nullptr); in ~Renderer()
375 vkDestroyPipelineLayout(mDeviceInfo->device(), mPipelineLayout, nullptr); in ~Renderer()
376 vkDestroyBuffer(mDeviceInfo->device(), mVertexBuffer, nullptr); in ~Renderer()
377 vkFreeMemory(mDeviceInfo->device(), mDeviceMemory, nullptr); in ~Renderer()
378 vkDestroyRenderPass(mDeviceInfo->device(), mRenderPass, nullptr); in ~Renderer()
380 vkDestroyFramebuffer(mDeviceInfo->device(), framebuffer, nullptr); in ~Renderer()
383 vkDestroyImageView(mDeviceInfo->device(), imageView, nullptr); in ~Renderer()
427 VK_CALL(vkCreateRenderPass(mDeviceInfo->device(), &renderPassCreateInfo, nullptr, in createRenderPass()
436 VK_CALL(vkGetSwapchainImagesKHR(mDeviceInfo->device(), mSwapchainInfo->swapchain(), in createFrameBuffers()
464 VK_CALL(vkCreateImageView(mDeviceInfo->device(), &imageViewCreateInfo, nullptr, in createFrameBuffers()
481 VK_CALL(vkCreateFramebuffer(mDeviceInfo->device(), &framebufferCreateInfo, nullptr, in createFrameBuffers()
500 VK_CALL(vkCreateBuffer(mDeviceInfo->device(), &bufferCreateInfo, nullptr, &mVertexBuffer)); in createVertexBuffers()
503 vkGetBufferMemoryRequirements(mDeviceInfo->device(), mVertexBuffer, &memoryRequirements); in createVertexBuffers()
527 VK_CALL(vkAllocateMemory(mDeviceInfo->device(), &memoryAllocateInfo, nullptr, &mDeviceMemory)); in createVertexBuffers()
530 VK_CALL(vkMapMemory(mDeviceInfo->device(), mDeviceMemory, 0, sizeof(vertexData), 0, &data)); in createVertexBuffers()
533 vkUnmapMemory(mDeviceInfo->device(), mDeviceMemory); in createVertexBuffers()
535 VK_CALL(vkBindBufferMemory(mDeviceInfo->device(), mVertexBuffer, mDeviceMemory, 0)); in createVertexBuffers()
558 VK_CALL(vkCreateShaderModule(mDeviceInfo->device(), &shaderModuleCreateInfo, nullptr, in loadShaderFromFile()
579 VK_CALL(vkCreatePipelineLayout(mDeviceInfo->device(), &pipelineLayoutCreateInfo, nullptr, in createGraphicsPipeline()
725 VK_CALL(vkCreateGraphicsPipelines(mDeviceInfo->device(), VK_NULL_HANDLE, 1, &pipelineCreateInfo, in createGraphicsPipeline()
728 vkDestroyShaderModule(mDeviceInfo->device(), mVertexShader, nullptr); in createGraphicsPipeline()
729 vkDestroyShaderModule(mDeviceInfo->device(), mFragmentShader, nullptr); in createGraphicsPipeline()
754 VK_CALL(vkCreateCommandPool(mDeviceInfo->device(), &commandPoolCreateInfo, nullptr, in init()
766 VK_CALL(vkAllocateCommandBuffers(mDeviceInfo->device(), &commandBufferAllocateInfo, in init()
834 VK_CALL(vkCreateFence(mDeviceInfo->device(), &fenceCreateInfo, nullptr, &mFence)); in init()
841 VK_CALL(vkCreateSemaphore(mDeviceInfo->device(), &semaphoreCreateInfo, nullptr, &mSemaphore)); in init()
848 VK_CALL(vkAcquireNextImageKHR(mDeviceInfo->device(), mSwapchainInfo->swapchain(), UINT64_MAX, in drawFrame()
851 VK_CALL(vkResetFences(mDeviceInfo->device(), 1, &mFence)); in drawFrame()
867 VK_CALL(vkWaitForFences(mDeviceInfo->device(), 1, &mFence, VK_TRUE, TIMEOUT_30_SEC)); in drawFrame()