Kohi Game Engine
vulkan_device.h
Go to the documentation of this file.
1 
14 #pragma once
15 
16 #include "vulkan_types.h"
17 
25 b8 vulkan_device_create(vulkan_context* context, b8 require_discrete_gpu);
26 
33 
43  vulkan_context* context,
44  VkPhysicalDevice physical_device,
45  VkSurfaceKHR surface,
46  vulkan_swapchain_support_info* out_support_info);
47 
_Bool b8
8-bit boolean type
Definition: defines.h:60
The overall Vulkan context for the backend. Holds and maintains global renderer backend state,...
Definition: vulkan_types.h:680
A representation of both the physical and logical Vulkan devices. Also contains handles to queues,...
Definition: vulkan_types.h:112
Contains swapchain support information and capabilities.
Definition: vulkan_types.h:80
b8 vulkan_device_detect_depth_format(vulkan_context *context, vulkan_device *device)
Detects and assigns the depth format for the given device.
b8 vulkan_device_create(vulkan_context *context, b8 require_discrete_gpu)
Creates a new Vulkan device and assigns it to the given context.
void vulkan_device_destroy(vulkan_context *context)
Destroys the device present in the given context.
void vulkan_device_query_swapchain_support(vulkan_context *context, VkPhysicalDevice physical_device, VkSurfaceKHR surface, vulkan_swapchain_support_info *out_support_info)
Queries for swapchain support data for the given physical device and surface.
This file contains a collection fo Vulkan-specific types used for the Vulkan backend.