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.