mirror of https://github.com/alibaba/MNN.git
				
				
				
			
		
			
	
	
		
			34 lines
		
	
	
		
			644 B
		
	
	
	
		
			C++
		
	
	
	
		
		
			
		
	
	
			34 lines
		
	
	
		
			644 B
		
	
	
	
		
			C++
		
	
	
	
| 
								 | 
							
								//
							 | 
						||
| 
								 | 
							
								//  VulkanSemaphore.hpp
							 | 
						||
| 
								 | 
							
								//  MNN
							 | 
						||
| 
								 | 
							
								//
							 | 
						||
| 
								 | 
							
								//  Created by MNN on 2019/01/31.
							 | 
						||
| 
								 | 
							
								//  Copyright © 2018, Alibaba Group Holding Limited
							 | 
						||
| 
								 | 
							
								//
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#ifndef VulkanSemaphore_hpp
							 | 
						||
| 
								 | 
							
								#define VulkanSemaphore_hpp
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#include <stdio.h>
							 | 
						||
| 
								 | 
							
								#include <vector>
							 | 
						||
| 
								 | 
							
								#include "NonCopyable.hpp"
							 | 
						||
| 
								 | 
							
								#include "VulkanDevice.hpp"
							 | 
						||
| 
								 | 
							
								#include "vulkan_wrapper.h"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								namespace MNN {
							 | 
						||
| 
								 | 
							
								class VulkanSemaphore : public NonCopyable {
							 | 
						||
| 
								 | 
							
								public:
							 | 
						||
| 
								 | 
							
								    VulkanSemaphore(const VulkanDevice& dev);
							 | 
						||
| 
								 | 
							
								    virtual ~VulkanSemaphore();
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    VkSemaphore get() const {
							 | 
						||
| 
								 | 
							
								        return mSemaphore;
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								private:
							 | 
						||
| 
								 | 
							
								    VkSemaphore mSemaphore;
							 | 
						||
| 
								 | 
							
								    const VulkanDevice& mDevice;
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								} // namespace MNN
							 | 
						||
| 
								 | 
							
								#endif /* VulkanSemaphore_hpp */
							 |