![]() |
SDK DOCUMENTATION
|
Go to the source code of this file.
Functions | |
struct varjo_GraphicsInfo * | varjo_D3D11Init (struct varjo_Session *session, struct ID3D11Device *dev, varjo_TextureFormat format, struct varjo_SwapChainConfig *config) |
Sets up the Direct3D device that the SDK will use for texture communication. More... | |
struct varjo_Texture | varjo_FromD3D11Texture (ID3D11Texture2D *texture) |
Converts a Direct3D 11 texture to varjo_Texture. More... | |
VARJO_DEPRECATED_API struct ID3D11Texture2D * | varjo_ToD3D11texture (varjo_Texture texture) |
Converts a Varjo texture to Direct3D 11 texture. More... | |
struct ID3D11Texture2D * | varjo_ToD3D11Texture (varjo_Texture texture) |
Converts a Varjo texture to Direct3D 11 texture. More... | |
void | varjo_D3D11ShutDown (struct varjo_Session *session) |
Closes the Direct3D connection. More... | |
struct varjo_Luid | varjo_D3D11GetLuid (struct varjo_Session *session) |
Retrieves LUID of the device which is used by compositor. More... | |
struct varjo_Luid varjo_D3D11GetLuid | ( | struct varjo_Session * | session | ) |
Retrieves LUID of the device which is used by compositor.
Application has to use the same device to work correctly.
session | Varjo session handle. |
struct varjo_GraphicsInfo* varjo_D3D11Init | ( | struct varjo_Session * | session, |
struct ID3D11Device * | dev, | ||
varjo_TextureFormat | format, | ||
struct varjo_SwapChainConfig * | config | ||
) |
Sets up the Direct3D device that the SDK will use for texture communication.
All varjo_D3D* functions may use D3D immediate device context and should thus be either invoked from the rendering thread or synchronized otherwise. The D3D device may be switched to another one once the old one has been shut down.
Varjo system automatically frees the returned varjo_GraphicsInfo struct when varjo_D3D11ShutDown or varjo_SessionShutDown is called.
session | Varjo session handle. |
dev | D3D11 device. |
format | Texture format. |
config | Swap chain config. If null, uses the default config. |
void varjo_D3D11ShutDown | ( | struct varjo_Session * | session | ) |
Closes the Direct3D connection.
Frees the memory allocated for varjo_D3D11Init graphics info.
session | Varjo session handle. |
struct varjo_Texture varjo_FromD3D11Texture | ( | ID3D11Texture2D * | texture | ) |
Converts a Direct3D 11 texture to varjo_Texture.
VARJO_DEPRECATED_API struct ID3D11Texture2D* varjo_ToD3D11texture | ( | varjo_Texture | texture | ) |
Converts a Varjo texture to Direct3D 11 texture.
This is a deprecated version of varjo_ToD3D11Texture.
struct ID3D11Texture2D* varjo_ToD3D11Texture | ( | varjo_Texture | texture | ) |
Converts a Varjo texture to Direct3D 11 texture.