2018-05-07 17:13:39 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//we need something like the other platforms to create surfaces on the RPI
|
|
|
|
//so I created this little "extension"
|
|
|
|
//full spec in this file ;)
|
|
|
|
|
|
|
|
typedef enum VkRpiSurfaceCreateFlagsKHR {
|
|
|
|
//reserved
|
|
|
|
VK_RPI_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
|
|
|
|
} VkRpiSurfaceCreateFlagsKHR;
|
|
|
|
|
|
|
|
typedef struct VkRpiSurfaceCreateInfoKHR {
|
|
|
|
VkStructureType sType;
|
|
|
|
const void* pNext;
|
2018-05-12 16:33:14 +02:00
|
|
|
VkRpiSurfaceCreateFlagsKHR flags; //reserved
|
2018-05-07 17:13:39 +02:00
|
|
|
//maybe include some other stuff dunno
|
|
|
|
} VkRpiSurfaceCreateInfoKHR;
|
|
|
|
|
2018-05-12 14:24:25 +02:00
|
|
|
//extension name something like: VK_KHR_rpi_surface
|
2018-05-07 17:13:39 +02:00
|
|
|
VkResult vkCreateRpiSurfaceKHR(
|
|
|
|
VkInstance instance,
|
|
|
|
const VkRpiSurfaceCreateInfoKHR* pCreateInfo,
|
|
|
|
const VkAllocationCallbacks* pAllocator,
|
|
|
|
VkSurfaceKHR* pSurface);
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|