implemented Vulkan surface creation
This commit is contained in:
parent
fa2a4887df
commit
b6b0c5091b
13 changed files with 128 additions and 18 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include <vulkan/vulkan.h>
|
||||
#include "../../types.h"
|
||||
#include "../../rgfw.h"
|
||||
|
||||
struct queue_family_indices {
|
||||
u32 graphics, present;
|
||||
|
|
@ -13,8 +14,10 @@ struct renderer_context {
|
|||
VkInstance instance;
|
||||
VkPhysicalDevice physical_device;
|
||||
VkDevice device;
|
||||
VkQueue graphics_queue;
|
||||
VkQueue graphics_queue, present_queue;
|
||||
VkSurfaceKHR surface;
|
||||
struct queue_family_indices queue_indices;
|
||||
RGFW_window *window;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue