Varjo Native SDK
Varjo_vk.h File Reference

Go to the source code of this file.

Functions

void varjo_GetInstanceExtensionsVk (struct varjo_Session *session, int32_t *count, const char **extensionNames)
 Get Vulkan instance extensions required for Varjo Runtime operation. More...
 
VkPhysicalDevice varjo_GetPhysicalDeviceVk (struct varjo_Session *session, VkInstance instance)
 Get a Vulkan physical device suitable for sharing textures with Varjo compositor. More...
 
void varjo_GetDeviceExtensionsVk (struct varjo_Session *session, int32_t *count, const char **extensionNames)
 Get Vulkan device extensions required for Varjo Runtime operation. More...
 
struct varjo_Texture varjo_FromVkTexture (VkImage texture)
 Converts a Vulkan texture to varjo_Texture. More...
 
VkImage varjo_ToVkTexture (struct varjo_Texture texture)
 Converts varjo_Texture to Vulkan texture. More...
 

Function Documentation

◆ varjo_FromVkTexture()

struct varjo_Texture varjo_FromVkTexture ( VkImage  texture)

Converts a Vulkan texture to varjo_Texture.

◆ varjo_GetDeviceExtensionsVk()

void varjo_GetDeviceExtensionsVk ( struct varjo_Session *  session,
int32_t *  count,
const char **  extensionNames 
)

Get Vulkan device extensions required for Varjo Runtime operation.

To allocate memory for the extensionNames output buffer, you should first call this function by passing null extensionNames and query the count for the extensions.

Parameters
sessionVarjo session handle.
countOutput pointer for the extension count. Cannot be null.
extensionNamesOutput pointer for the extension names. Can be null.

◆ varjo_GetInstanceExtensionsVk()

void varjo_GetInstanceExtensionsVk ( struct varjo_Session *  session,
int32_t *  count,
const char **  extensionNames 
)

Get Vulkan instance extensions required for Varjo Runtime operation.

To allocate memory for the extensionNames output buffer, you should first call this function by passing null extensionNames and query the count for the extensions.

Parameters
sessionVarjo session handle.
countOutput pointer for the extension count. Cannot be null.
extensionNamesOutput pointer for the extension names. Can be null.

◆ varjo_GetPhysicalDeviceVk()

VkPhysicalDevice varjo_GetPhysicalDeviceVk ( struct varjo_Session *  session,
VkInstance  instance 
)

Get a Vulkan physical device suitable for sharing textures with Varjo compositor.

Parameters
sessionVarjo session handle.
instanceVulkan instance.
Returns
A valid VkPhysicalDevice handle, or VK_NULL_HANDLE on error.

◆ varjo_ToVkTexture()

VkImage varjo_ToVkTexture ( struct varjo_Texture  texture)

Converts varjo_Texture to Vulkan texture.