Varjo Native SDK
Varjo_d3d11.h File Reference

Go to the source code of this file.

Functions

struct varjo_Texture varjo_FromD3D11Texture (struct ID3D11Texture2D *texture)
 Converts a Direct3D 11 texture to varjo_Texture. More...
 
VARJO_DEPRECATED_API struct ID3D11Texture2D * varjo_ToD3D11texture (struct varjo_Texture texture)
 Converts varjo_Texture to Direct3D 11 texture. More...
 
struct ID3D11Texture2D * varjo_ToD3D11Texture (struct varjo_Texture texture)
 Converts varjo_Texture to Direct3D 11 texture. More...
 
struct varjo_Luid varjo_D3D11GetLuid (struct varjo_Session *session)
 Retrieves LUID of the device which is used by compositor. More...
 

Function Documentation

◆ varjo_D3D11GetLuid()

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.

Parameters
sessionVarjo session handle.
Returns
LUID of DirectX device which compositor is using.

◆ varjo_FromD3D11Texture()

struct varjo_Texture varjo_FromD3D11Texture ( struct ID3D11Texture2D *  texture)

Converts a Direct3D 11 texture to varjo_Texture.

◆ varjo_ToD3D11texture()

VARJO_DEPRECATED_API struct ID3D11Texture2D* varjo_ToD3D11texture ( struct varjo_Texture  texture)

Converts varjo_Texture to Direct3D 11 texture.

This is a deprecated version of varjo_ToD3D11Texture.

◆ varjo_ToD3D11Texture()

struct ID3D11Texture2D* varjo_ToD3D11Texture ( struct varjo_Texture  texture)

Converts varjo_Texture to Direct3D 11 texture.