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:
parent
12ab26dd1d
commit
96841ee663
7 changed files with 1044 additions and 0 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue