Stay organized with collections
Save and categorize content based on your preferences.
SwappyVkFunctionProvider
#include <swappyVk.h>
A structure enabling you to provide your own Vulkan function wrappers by calling SwappyVk_setFunctionProvider.
Summary
Usage of this functionality is optional.
Public attributes
|
close)()
|
void(*
Callback to close any resources owned by the function provider.
|
getProcAddr)(const char *name)
|
void *(*
Callback to get the address of a function.
|
init)()
|
bool(*
Callback to initialize the function provider.
|
Public attributes
close
void(* SwappyVkFunctionProvider::close)()
Callback to close any resources owned by the function provider.
This function is called by Swappy when no more functions will be requested, e.g. so you can call dlclose on the Vulkan library.
getProcAddr
void *(* SwappyVkFunctionProvider::getProcAddr)(const char *name)
Callback to get the address of a function.
This function is called by Swappy to get the address of a Vulkan function.
Details |
Parameters |
name
|
The null-terminated name of the function.
|
|
init
bool(* SwappyVkFunctionProvider::init)()
Callback to initialize the function provider.
This function is called by Swappy before any functions are requested. E.g. so you can call dlopen on the Vulkan library.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-07-12 UTC.
[null,null,["Last updated 2021-07-12 UTC."],[],[],null,["# SwappyVkFunctionProvider Struct Reference\n\nSwappyVkFunctionProvider\n========================\n\n`#include \u003cswappyVk.h\u003e`\n\nA structure enabling you to provide your own Vulkan function wrappers by calling [SwappyVk_setFunctionProvider](/games/sdk/reference/frame-pacing/group/swappy-vk#group__swappy_vk_1gaf01c9db90ce83020bedf7a0decb53013).\n\nSummary\n-------\n\nUsage of this functionality is optional.\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|\n| [close](#struct_swappy_vk_function_provider_1ada2d16af36ea17c360ca627de4e1dda3)`)()` | `void(*` Callback to close any resources owned by the function provider. |\n| [getProcAddr](#struct_swappy_vk_function_provider_1ae4f1aa1918557cee3460a79315334d60)`)(const char *name)` | `void *(*` Callback to get the address of a function. |\n| [init](#struct_swappy_vk_function_provider_1a3bfcb8abd63ec74b08a2ec4b8d6ba03e)`)()` | `bool(*` Callback to initialize the function provider. |\n\nPublic attributes\n-----------------\n\n### close\n\n```scdoc\nvoid(* SwappyVkFunctionProvider::close)()\n``` \nCallback to close any resources owned by the function provider.\n\nThis function is called by Swappy when no more functions will be requested, e.g. so you can call dlclose on the Vulkan library. \n\n### getProcAddr\n\n```gdscript\nvoid *(* SwappyVkFunctionProvider::getProcAddr)(const char *name)\n``` \nCallback to get the address of a function.\n\nThis function is called by Swappy to get the address of a Vulkan function.\n\n| Details ||\n|------------|---------------------------------------------------------------------------------------------------------------|\n| Parameters | |--------|-------------------------------------------| | `name` | The null-terminated name of the function. | |\n\n### init\n\n```scdoc\nbool(* SwappyVkFunctionProvider::init)()\n``` \nCallback to initialize the function provider.\n\nThis function is called by Swappy before any functions are requested. E.g. so you can call dlopen on the Vulkan library."]]