MNNSharedContext.h
浏览该文件的文档.
//
// MNNSharedContext.h
// MNN
//
// Created by MNN on 2018/10/11.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef MNNSharedContext_h
#define MNNSharedContext_h
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h> /*uint32_t*/
#ifndef VK_DEFINE_HANDLE
#define VK_DEFINE_HANDLE(object) typedef struct object##_T* object;
VK_DEFINE_HANDLE(VkInstance)
VK_DEFINE_HANDLE(VkPhysicalDevice)
VK_DEFINE_HANDLE(VkDevice)
VK_DEFINE_HANDLE(VkQueue)
#endif
struct MNNVulkanContext {
VkInstance pInstance;
VkPhysicalDevice pPhysicalDevice;
VkDevice pDevice;
VkQueue pQueue;
uint32_t iQueueFamilyIndex;
bool supportFeneFd;
};
#ifdef __cplusplus
}
#endif
#endif /* MNNSharedContext_h */
MNNVulkanContext::iQueueFamilyIndex
uint32_t iQueueFamilyIndex
Definition: MNNSharedContext.h:29
VK_DEFINE_HANDLE
#define VK_DEFINE_HANDLE(object)
Definition: MNNSharedContext.h:18
MNNVulkanContext::pInstance
VkInstance pInstance
Definition: MNNSharedContext.h:25
MNNVulkanContext::pPhysicalDevice
VkPhysicalDevice pPhysicalDevice
Definition: MNNSharedContext.h:26
MNNVulkanContext::pDevice
VkDevice pDevice
Definition: MNNSharedContext.h:27
MNNVulkanContext::pQueue
VkQueue pQueue
Definition: MNNSharedContext.h:28
MNNVulkanContext
Definition: MNNSharedContext.h:24
MNNVulkanContext::supportFeneFd
bool supportFeneFd
Definition: MNNSharedContext.h:30