12 #if defined(LUG_SYSTEM_WINDOWS) 14 #elif defined(LUG_SYSTEM_ANDROID) 24 #define LUG_LOAD_VULKAN_FUNCTIONS(name) \ 26 name = System::Library::sym<PFN_##name>(_handle, #name); \ 34 #undef LUG_LOAD_VULKAN_FUNCTIONS 36 #define LUG_LOAD_VULKAN_FUNCTIONS(name) \ 38 name = reinterpret_cast<PFN_##name>(vkGetInstanceProcAddr(nullptr, #name)); \ 40 LUG_LOG.error("Vulkan: Can't load symbol {}", #name); \ 47 #undef LUG_LOAD_VULKAN_FUNCTIONS 53 #define LUG_LOAD_VULKAN_FUNCTIONS(name) \ 55 name = instance.getProcAddr<PFN_##name>(#name); \ 57 LUG_LOG.error("Vulkan: Can't load symbol {}", #name); \ 64 #undef LUG_LOAD_VULKAN_FUNCTIONS 70 #define LUG_LOAD_VULKAN_FUNCTIONS(name) \ 72 name = device.getProcAddr<PFN_##name>(#name); \ 74 LUG_LOG.error("Vulkan: Can't load symbol {}", #name); \ 81 #undef LUG_LOAD_VULKAN_FUNCTIONS 87 #define LUG_UNLOAD_VULKAN_FUNCTIONS(name) name = nullptr; 92 #undef LUG_UNLOAD_VULKAN_FUNCTIONS #define LUG_CORE_VULKAN_FUNCTIONS(macro)
#define LUG_INSTANCE_VULKAN_FUNCTIONS(macro)
#define LUG_EXPORTED_VULKAN_FUNCTIONS(macro)
#define LUG_UNLOAD_VULKAN_FUNCTIONS(name)
#define LUG_DEVICE_VULKAN_FUNCTIONS(macro)
bool loadInstanceFunctions(const Instance &instance)
bool loadDeviceFunctions(const Device &device)
Handle open(const char *name)
System::Library::Handle _handle
#define LUG_LOAD_VULKAN_FUNCTIONS(name)
void close(Handle handle)