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

Function loadInstanceFunctions

deps/SDL2/test/testvulkan.c:293–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293static void loadInstanceFunctions(void)
294{
295#define VULKAN_DEVICE_FUNCTION(name)
296#define VULKAN_GLOBAL_FUNCTION(name)
297#define VULKAN_INSTANCE_FUNCTION(name) \
298 name = (PFN_##name)vkGetInstanceProcAddr(vulkanContext.instance, #name); \
299 if(!name) \
300 { \
301 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, \
302 "vkGetInstanceProcAddr(instance, \"" #name "\") failed\n"); \
303 quit(2); \
304 }
305 VULKAN_FUNCTIONS()
306#undef VULKAN_DEVICE_FUNCTION
307#undef VULKAN_GLOBAL_FUNCTION
308#undef VULKAN_INSTANCE_FUNCTION
309}
310
311static void createSurface(void)
312{

Callers 1

initVulkanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected