MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / loadDeviceFunctions

Function loadDeviceFunctions

deps/SDL2/test/testvulkan.c:529–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527}
528
529static void loadDeviceFunctions(void)
530{
531#define VULKAN_DEVICE_FUNCTION(name) \
532 name = (PFN_##name)vkGetDeviceProcAddr(vulkanContext.device, #name); \
533 if(!name) \
534 { \
535 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, \
536 "vkGetDeviceProcAddr(device, \"" #name "\") failed\n"); \
537 quit(2); \
538 }
539#define VULKAN_GLOBAL_FUNCTION(name)
540#define VULKAN_INSTANCE_FUNCTION(name)
541 VULKAN_FUNCTIONS()
542#undef VULKAN_DEVICE_FUNCTION
543#undef VULKAN_GLOBAL_FUNCTION
544#undef VULKAN_INSTANCE_FUNCTION
545}
546
547#undef VULKAN_FUNCTIONS
548

Callers 1

initVulkanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected