Varjo Native SDK
Varjo_vk.h
Go to the documentation of this file.
1 // Copyright 2022 Varjo Technologies Oy. All rights reserved.
2 
3 #ifndef VARJO_VK_H
4 #define VARJO_VK_H
5 
6 #include "Varjo_types_vk.h"
7 
8 #if defined __cplusplus
9 extern "C" {
10 #endif
11 
22 VARJO_API void varjo_GetInstanceExtensionsVk(struct varjo_Session* session, int32_t* count, const char** extensionNames);
23 
32 VARJO_API VkPhysicalDevice varjo_GetPhysicalDeviceVk(struct varjo_Session* session, VkInstance instance);
33 
44 VARJO_API void varjo_GetDeviceExtensionsVk(struct varjo_Session* session, int32_t* count, const char** extensionNames);
45 
49 VARJO_API struct varjo_Texture varjo_FromVkTexture(VkImage texture);
50 
54 VARJO_API VkImage varjo_ToVkTexture(struct varjo_Texture texture);
55 
56 #if defined __cplusplus
57 }
58 #endif
59 
60 #endif // VARJO_VK_H
varjo_GetDeviceExtensionsVk
void varjo_GetDeviceExtensionsVk(struct varjo_Session *session, int32_t *count, const char **extensionNames)
Get Vulkan device extensions required for Varjo Runtime operation.
Varjo_types_vk.h
varjo_GetInstanceExtensionsVk
void varjo_GetInstanceExtensionsVk(struct varjo_Session *session, int32_t *count, const char **extensionNames)
Get Vulkan instance extensions required for Varjo Runtime operation.
varjo_FromVkTexture
struct varjo_Texture varjo_FromVkTexture(VkImage texture)
Converts a Vulkan texture to varjo_Texture.
varjo_Texture
API-agnostic texture handle.
Definition: Varjo_types.h:512
varjo_ToVkTexture
VkImage varjo_ToVkTexture(struct varjo_Texture texture)
Converts varjo_Texture to Vulkan texture.
varjo_GetPhysicalDeviceVk
VkPhysicalDevice varjo_GetPhysicalDeviceVk(struct varjo_Session *session, VkInstance instance)
Get a Vulkan physical device suitable for sharing textures with Varjo compositor.