mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-05 00:50:53 +00:00
vulkan support [but I finish adding the files]
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@88 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
39
include/Mw/Vulkan.h
Normal file
39
include/Mw/Vulkan.h
Normal file
@@ -0,0 +1,39 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MW_VULKAN_H__
|
||||
#define __MW_VULKAN_H__
|
||||
|
||||
#if !defined(_WIN32) && !defined(__linux__) && !defined(__FreeBSD__)
|
||||
#error Vulkan is unsupported on the requested platform.
|
||||
#endif
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
MWDECL MwClass MwVulkanClass;
|
||||
|
||||
// Add an extension to the list of extensions to enable prior to initialization.
|
||||
// This must be called before MwCreateWidget.
|
||||
MWDECL void MwVulkanEnableExtension(const char* ext_name);
|
||||
|
||||
MWDECL PFN_vkGetInstanceProcAddr MwVulkanGetInstanceProcAddr(MwWidget handle);
|
||||
MWDECL VkInstance MwVulkanGetInstance(MwWidget handle);
|
||||
MWDECL VkSurfaceKHR MwVulkanGetSurface(MwWidget handle);
|
||||
MWDECL VkPhysicalDevice MwVulkanGetPhysicalDevice(MwWidget handle);
|
||||
MWDECL VkDevice MwVulkanGetLogicalDevice(MwWidget handle);
|
||||
MWDECL int MwVulkanGetGraphicsQueueIndex(MwWidget handle);
|
||||
MWDECL int MwVulkanGetPresentQueueIndex(MwWidget handle);
|
||||
MWDECL VkQueue MwVulkanGetGraphicsQueue(MwWidget handle);
|
||||
MWDECL VkQueue MwVulkanGetPresentQueue(MwWidget handle);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user