mirror of
				https://github.com/PancakeTAS/lsfg-vk.git
				synced 2025-10-30 07:01:10 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			467 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			467 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#pragma once
 | 
						|
 | 
						|
#include <vulkan/vulkan_core.h>
 | 
						|
 | 
						|
#include <cstdint>
 | 
						|
#include <unordered_map>
 | 
						|
#include <utility>
 | 
						|
#include <string>
 | 
						|
 | 
						|
namespace Hooks {
 | 
						|
 | 
						|
    /// Vulkan device information structure.
 | 
						|
    struct DeviceInfo {
 | 
						|
        VkDevice device;
 | 
						|
        VkPhysicalDevice physicalDevice;
 | 
						|
        std::pair<uint32_t, VkQueue> queue; // graphics family
 | 
						|
    };
 | 
						|
 | 
						|
    /// Map of hooked Vulkan functions.
 | 
						|
    extern std::unordered_map<std::string, PFN_vkVoidFunction> hooks;
 | 
						|
 | 
						|
}
 |