mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-20 06:46:26 -04:00
20 lines
391 B
C
20 lines
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);
|