mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-18 06:46:23 -04:00
This initialized a Vulkan logical device according to compositor preference, but does not yet do anything with it.
20 lines
No EOL
391 B
C
20 lines
No EOL
391 B
C
#pragma once
|
|
|
|
#include <sys/types.h>
|
|
#include <vulkan/vulkan.h>
|
|
|
|
struct vulkan {
|
|
VkInstance instance;
|
|
VkPhysicalDevice *devices;
|
|
uint32_t device_len;
|
|
VkPhysicalDevice physical_device;
|
|
|
|
VkDevice device;
|
|
|
|
struct {
|
|
PFN_vkGetMemoryFdKHR vkGetMemoryFdKHR;
|
|
} api;
|
|
};
|
|
|
|
void vulkan_destroy(struct vulkan *vk);
|
|
struct vulkan *vulkan_create(dev_t preferred_device); |