Lines Matching full:driver
16 #include "Driver.hpp"
19 : driver(nullptr) in Device()
26 const Driver *driver, VkDevice device, VkPhysicalDevice physicalDevice, in Device() argument
28 : driver(driver) in Device()
38 driver->vkDeviceWaitIdle(device); in ~Device()
39 driver->vkDestroyDevice(device, nullptr); in ~Device()
49 const Driver *driver, VkInstance instance, std::unique_ptr<Device> &out) in CreateComputeDevice() argument
55 result = GetPhysicalDevices(driver, instance, physicalDevices); in CreateComputeDevice()
64 int queueFamilyIndex = GetComputeQueueFamilyIndex(driver, physicalDevice); in CreateComputeDevice()
94 result = driver->vkCreateDevice(physicalDevice, &deviceCreateInfo, nullptr, &device); in CreateComputeDevice()
100 out.reset(new Device(driver, device, physicalDevice, static_cast<uint32_t>(queueFamilyIndex))); in CreateComputeDevice()
108 const Driver *driver, VkPhysicalDevice device) in GetComputeQueueFamilyIndex() argument
110 auto properties = GetPhysicalDeviceQueueFamilyProperties(driver, device); in GetComputeQueueFamilyIndex()
123 const Driver *driver, VkPhysicalDevice device) in GetPhysicalDeviceQueueFamilyProperties() argument
127 driver->vkGetPhysicalDeviceQueueFamilyProperties(device, &count, nullptr); in GetPhysicalDeviceQueueFamilyProperties()
129 driver->vkGetPhysicalDeviceQueueFamilyProperties(device, &count, out.data()); in GetPhysicalDeviceQueueFamilyProperties()
134 const Driver *driver, VkInstance instance, in GetPhysicalDevices() argument
138 VkResult result = driver->vkEnumeratePhysicalDevices(instance, &count, 0); in GetPhysicalDevices()
144 return driver->vkEnumeratePhysicalDevices(instance, &count, out.data()); in GetPhysicalDevices()
163 VkResult result = driver->vkCreateBuffer(device, &info, 0, &buffer); in CreateStorageBuffer()
169 result = driver->vkBindBufferMemory(device, buffer, memory, offset); in CreateStorageBuffer()
181 driver->vkDestroyBuffer(device, buffer, nullptr); in DestroyBuffer()
194 return driver->vkCreateShaderModule(device, &info, 0, out); in CreateShaderModule()
199 driver->vkDestroyShaderModule(device, shaderModule, nullptr); in DestroyShaderModule()
214 return driver->vkCreateDescriptorSetLayout(device, &info, 0, out); in CreateDescriptorSetLayout()
219 driver->vkDestroyDescriptorSetLayout(device, descriptorSetLayout, nullptr); in DestroyDescriptorSetLayout()
235 return driver->vkCreatePipelineLayout(device, &info, 0, out); in CreatePipelineLayout()
240 driver->vkDestroyPipelineLayout(device, pipelineLayout, nullptr); in DestroyPipelineLayout()
266 return driver->vkCreateComputePipelines(device, 0, 1, &info, 0, out); in CreateComputePipeline()
271 driver->vkDestroyPipeline(device, pipeline, nullptr); in DestroyPipeline()
291 return driver->vkCreateDescriptorPool(device, &info, 0, out); in CreateStorageBufferDescriptorPool()
296 driver->vkDestroyDescriptorPool(device, descriptorPool, nullptr); in DestroyDescriptorPool()
311 return driver->vkAllocateDescriptorSets(device, &info, out); in AllocateDescriptorSet()
336 driver->vkUpdateDescriptorSets(device, (uint32_t)writes.size(), writes.data(), 0, nullptr); in UpdateStorageBufferDescriptorSets()
342 driver->vkGetPhysicalDeviceMemoryProperties(physicalDevice, &properties); in AllocateMemory()
363 return driver->vkAllocateMemory(device, &info, 0, out); in AllocateMemory()
371 driver->vkFreeMemory(device, memory, nullptr); in FreeMemory()
377 return driver->vkMapMemory(device, memory, offset, size, flags, ppData); in MapMemory()
382 driver->vkUnmapMemory(device, memory); in UnmapMemory()
393 return driver->vkCreateCommandPool(device, &info, 0, out); in CreateCommandPool()
398 return driver->vkDestroyCommandPool(device, commandPool, nullptr); in DestroyCommandPool()
411 return driver->vkAllocateCommandBuffers(device, &info, out); in AllocateCommandBuffer()
416 driver->vkFreeCommandBuffers(device, pool, 1, &buffer); in FreeCommandBuffer()
429 return driver->vkBeginCommandBuffer(commandBuffer, &info); in BeginCommandBuffer()
435 driver->vkGetDeviceQueue(device, queueFamilyIndex, 0, &queue); in QueueSubmitAndWait()
449 VkResult result = driver->vkQueueSubmit(queue, 1, &info, VK_NULL_HANDLE); in QueueSubmitAndWait()
455 return driver->vkQueueWaitIdle(queue); in QueueSubmitAndWait()