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

Function SDL_Vulkan_LoadLibrary

deps/SDL2/src/video/SDL_video.c:4107–4131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4105#define NOT_A_VULKAN_WINDOW "The specified window isn't a Vulkan window"
4106
4107int SDL_Vulkan_LoadLibrary(const char *path)
4108{
4109 int retval;
4110 if (!_this) {
4111 SDL_UninitializedVideo();
4112 return -1;
4113 }
4114 if (_this->vulkan_config.loader_loaded) {
4115 if (path && SDL_strcmp(path, _this->vulkan_config.loader_path) != 0) {
4116 return SDL_SetError("Vulkan loader library already loaded");
4117 }
4118 retval = 0;
4119 } else {
4120 if (!_this->Vulkan_LoadLibrary) {
4121 return SDL_SetError("Vulkan support is either not configured in SDL "
4122 "or not available in current SDL video driver "
4123 "(%s) or platform", _this->name);
4124 }
4125 retval = _this->Vulkan_LoadLibrary(_this, path);
4126 }
4127 if (retval == 0) {
4128 _this->vulkan_config.loader_loaded++;
4129 }
4130 return retval;
4131}
4132
4133void *SDL_Vulkan_GetVkGetInstanceProcAddr(void)
4134{

Callers 2

initVulkanFunction · 0.85
SDL_CreateWindowFunction · 0.85

Calls 3

SDL_UninitializedVideoFunction · 0.85
SDL_strcmpFunction · 0.85
SDL_SetErrorFunction · 0.85

Tested by 1

initVulkanFunction · 0.68