MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Tools / load_function

Method load_function

vulkaninfo/vulkaninfo.h:184–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 private:
183 template <typename T>
184 bool load_function(T &function_pointer, const char *function_name) {
185 function_pointer = reinterpret_cast<T>(GetProcAddress(user32DllHandle, function_name));
186 if (function_pointer == nullptr) {
187 fprintf(stderr, "Failed to load function: %s\n", function_name);
188 return false;
189 }
190 return true;
191 }
192};
193
194// Global user handles function used in windows callback and code

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected