SDK DOCUMENTATION
Varjo_types.h File Reference

Go to the source code of this file.

Data Structures

struct  varjo_Matrix
 Double precision 4x4 matrix. More...
 
struct  varjo_Ray
 Ray is a vector starting from an origin. More...
 
struct  varjo_Vector2Df
 32bit floating point 2D vector. More...
 
struct  varjo_Vector3D
 
struct  varjo_Mesh2Df
 2D triangle list mesh. More...
 
struct  varjo_AlignedView
 Axis aligned tangents from a projection matrix. More...
 
struct  varjo_ViewInfo
 View information for a frame. More...
 
struct  varjo_FrameInfo
 Per-frame information. More...
 
struct  varjo_ViewDescription
 View description. More...
 
struct  varjo_Gaze
 Gaze tracker vectors and tracking state. More...
 
struct  varjo_SwapChainConfig
 Config for swap chain texture size and count. More...
 
struct  varjo_SwapChainLimits
 Minimum and maximum limits for swap chain texture count and size. More...
 
struct  varjo_Viewport
 Viewport rectangle that defines viewport area. More...
 
struct  varjo_GraphicsInfo
 General graphics information. More...
 
struct  varjo_Texture
 API-agnostic texture handle. More...
 
struct  varjo_SubmitInfo
 Information required to submit a frame to the Compositor. More...
 

Typedefs

typedef int64_t varjo_Error
 
typedef int32_t varjo_Bool
 
typedef int64_t varjo_Nanoseconds
 Time in nanoseconds. More...
 
typedef int64_t varjo_GazeStatus
 Gaze statuses. More...
 
typedef int64_t varjo_GazeEyeStatus
 
typedef int64_t varjo_RotationReset
 Rotation reset types. More...
 
typedef int64_t varjo_PropertyKey
 System status properties. More...
 
typedef int64_t varjo_PoseType
 
typedef int64_t varjo_DisplayType
 
typedef int64_t varjo_Eye
 
typedef int64_t varjo_WindingOrder
 
typedef int64_t varjo_TextureFormat
 
typedef int64_t varjo_RenderAPI
 Render API flags. More...
 
typedef int64_t varjo_EulerOrder
 
typedef int64_t varjo_RotationDirection
 
typedef int64_t varjo_Handedness
 
typedef int64_t varjo_SubmitFlags
 Submit flags. More...
 

Variables

static const varjo_Error varjo_Error_InvalidSession = 1
 
static const varjo_Error varjo_Error_OutOfMemory = 2
 
static const varjo_Error varjo_Error_InvalidVersion = 3
 
static const varjo_Error varjo_Error_GraphicsNotInitialized = 4
 
static const varjo_Error varjo_Error_FrameNotStarted = 5
 
static const varjo_Error varjo_Error_FrameAlreadyStarted = 6
 
static const varjo_Error varjo_Error_ViewIndexOutOfBounds = 7
 
static const varjo_Error varjo_Error_InvalidPoseType = 8
 
static const varjo_Error varjo_Error_NullPointer = 9
 
static const varjo_Error varjo_Error_MixingTextures = 10
 
static const varjo_Error varjo_Error_NaN = 11
 
static const varjo_Error varjo_Error_NoHMDConnected = 12
 
static const varjo_Error varjo_Error_GazeNotInitialized = 100
 
static const varjo_Error varjo_Error_GazeNotConnected = 101
 
static const varjo_Error varjo_Error_GazeAlreadyInitialized = 102
 
static const varjo_Error varjo_Error_GazeNotAllowed = 103
 
static const varjo_Error varjo_Error_D3D11DeviceCreationFailed = 200
 
static const varjo_Error varjo_Error_GetD3D11_1DeviceFailed = 201
 
static const varjo_Error varjo_Error_AcquireD3D11DeviceHandleFailed = 202
 
static const varjo_Error varjo_Error_GLBackBufferAlreadyCreated = 203
 
static const varjo_Error varjo_Error_GLExtensionNotFound = 204
 
static const varjo_Error varjo_Error_GLCreateTextureFailed = 205
 
static const varjo_Error varjo_Error_GLAcquireD3D11TextureHandleFailed = 206
 
static const varjo_Error varjo_Error_GLLockTextureFailed = 207
 
static const varjo_Error varjo_Error_GLCopyTextureFailed = 208
 
static const varjo_Error varjo_Error_OpenSharedTextureFailed = 209
 
static const varjo_Error varjo_Error_TextureMutexQueryFailed = 210
 
static const varjo_Error varjo_Error_TextureMutexAcquireFailed = 211
 
static const varjo_Error varjo_Error_TextureMutexReleaseFailed = 212
 
static const varjo_Error varjo_Error_D3D11AlreadyInitialized = 213
 
static const varjo_Error varjo_Error_D3D11ShutDownFailed = 214
 
static const varjo_Error varjo_Error_GLAlreadyInitialized = 215
 
static const varjo_Error varjo_Error_GLShutDownFailed = 216
 
static const varjo_Error varjo_Error_UnsupportedTextureFormat = 217
 
static const varjo_Error varjo_Error_SwapChainConfigInvalidWidth = 219
 
static const varjo_Error varjo_Error_SwapChainConfigInvalidHeight = 220
 
static const varjo_Error varjo_Error_SwapChainConfigInvalidTextureCount = 221
 
static const varjo_Error varjo_Error_GraphicsShutDownFailed = 222
 
static const varjo_Error varjo_Error_TextureIsNull = 223
 
static const varjo_Error varjo_Error_InvalidFrameNumber = 224
 
static const varjo_Error varjo_Error_InvalidRenderAPI = 225
 
static const varjo_Error varjo_Error_InvalidMatrix = 226
 
static const varjo_Error varjo_Error_UnsupportedDepthFormat = 227
 
static const varjo_Error varjo_Error_InvalidClipDistances = 229
 
static const varjo_Error varjo_Error_SwapChainInvalidTextureIndex = 230
 
static const varjo_Error varjo_Error_ConnectToProgramManagerFailed = 300
 
static const varjo_Error varjo_Error_RequestSwapChainFormatFailed = 301
 
static const varjo_Error varjo_Error_OpenSharedEventFailed = 302
 
static const varjo_Error varjo_Error_CreateIPCFailed = 303
 
static const varjo_Error varjo_Error_InitializeCompositorLinkFailed = 304
 
static const varjo_Error varjo_Error_RequestViewInfoFailed = 305
 
static const varjo_Error varjo_Error_NoCompositorLink = 306
 
static const varjo_Error varjo_Error_RequestCreateSwapChainFailed = 307
 
static const varjo_Error varjo_NoError = 0
 
static const varjo_Error varjo_Error_Unknown = -1
 
static const varjo_Bool varjo_False = 0
 
static const varjo_Bool varjo_True = 1
 
static const varjo_GazeStatus varjo_GazeStatus_Invalid = 0
 Data is not available, user is not wearing the device or eyes can not be found. More...
 
static const varjo_GazeStatus varjo_GazeStatus_Adjust = 1
 User is wearing the device but gaze tracking is in middle of adjustment. More...
 
static const varjo_GazeStatus varjo_GazeStatus_Valid = 2
 Data is valid. More...
 
static const varjo_GazeEyeStatus varjo_GazeEyeStatus_Invalid = 0
 Eye is not tracked. (e.g. not visible or is shut). More...
 
static const varjo_GazeEyeStatus varjo_GazeEyeStatus_Visible = 1
 Eye is visible but not reliably tracked (e.g. saccade or blink). More...
 
static const varjo_GazeEyeStatus varjo_GazeEyeStatus_Compensated = 2
 Eye is tracked but quality compromised (e.g. headset has moved after calibration). More...
 
static const varjo_GazeEyeStatus varjo_GazeEyeStatus_Tracked = 3
 Eye is tracked. More...
 
static const varjo_RotationReset varjo_RotationReset_None = 0
 Rotation is not reset. More...
 
static const varjo_RotationReset varjo_RotationReset_Yaw = 1
 Yaw rotation (around up Y axis) is reset. More...
 
static const varjo_RotationReset varjo_RotationReset_All = 7
 All rotation axes are reset. More...
 
static const varjo_PropertyKey varjo_PropertyKey_Invalid = 0x0
 Invalid property key. More...
 
static const varjo_PropertyKey varjo_PropertyKey_GazeCalibrating = 0xA000
 boolean. Is system currently calibrating the HMD gaze tracker. More...
 
static const varjo_PropertyKey varjo_PropertyKey_GazeCalibrated = 0xA001
 boolean. Is the HMD gaze tracker calibrated. More...
 
static const varjo_PropertyKey varjo_PropertyKey_GazeCalibrationQuality = 0xA002
 float [0.0-1.0]. Quality of the gaze calibration. More...
 
static const varjo_PropertyKey varjo_PropertyKey_GazeAllowed = 0xA003
 boolean. Is the HMD gaze tracker allowed. More...
 
static const varjo_PropertyKey varjo_PropertyKey_GazeIPDEstimate = 0xA010
 float. IPD distance estimate in millimeters. More...
 
static const varjo_PoseType varjo_PoseType_LeftEye = 0x1
 Pose for the left eye. More...
 
static const varjo_PoseType varjo_PoseType_Center = 0x2
 Pose for the head (in the middle of the eyes). More...
 
static const varjo_PoseType varjo_PoseType_RightEye = 0x3
 Pose for the right eye. More...
 
static const varjo_DisplayType varjo_DisplayType_Focus = 0x1
 Focus display. More...
 
static const varjo_DisplayType varjo_DisplayType_Context = 0x2
 Context display. More...
 
static const varjo_Eye varjo_Eye_Left = 0x1
 Left eye. More...
 
static const varjo_Eye varjo_Eye_Right = 0x2
 Right eye. More...
 
static const varjo_WindingOrder varjo_WindingOrder_Clockwise = 0x1
 Clockwise triangle winding. More...
 
static const varjo_WindingOrder varjo_WindingOrder_CounterClockwise = 0x2
 Counter-clockwise triangle winding. More...
 
static const varjo_TextureFormat varjo_TextureFormat_R8G8B8A8_SRGB = 0x1
 sRgb 8-bit RGBA format More...
 
static const varjo_TextureFormat varjo_TextureFormat_R8B8G8A8_SRGB = 0x1
 sRgb 8-bit RGBA format (deprecated due to a typo.) More...
 
static const varjo_TextureFormat varjo_TextureFormat_B8G8R8A8_SRGB = 0x2
 sRgb 8-bit BGRA format More...
 
static const varjo_TextureFormat varjo_DepthTextureFormat_D32_FLOAT = 0x3
 
static const varjo_RenderAPI varjo_RenderAPI_D3D11 = 0x1
 Direct3D11 rendering API. More...
 
static const varjo_RenderAPI varjo_RenderAPI_GL = 0x2
 OpenGL rendering API. More...
 
static const varjo_EulerOrder varjo_EulerOrder_XYZ = 0
 
static const varjo_EulerOrder varjo_EulerOrder_ZYX = 1
 
static const varjo_EulerOrder varjo_EulerOrder_XZY = 2
 
static const varjo_EulerOrder varjo_EulerOrder_YZX = 3
 
static const varjo_EulerOrder varjo_EulerOrder_YXZ = 4
 
static const varjo_EulerOrder varjo_EulerOrder_ZXY = 5
 
static const varjo_RotationDirection varjo_RotationDirection_Clockwise = -1
 
static const varjo_RotationDirection varjo_RotationDirection_CounterClockwise = 1
 
static const varjo_Handedness varjo_Handedness_RightHanded = 1
 
static const varjo_Handedness varjo_Handedness_LeftHanded = -1
 
static const int64_t varjo_SubmitFlag_Async = 1
 Makes varjo_EndFrame return immediately unless there is already a submittion in progress. More...
 
static const int64_t varjo_SubmitFlag_Opaque = 2
 Frame is opaque and doesn't need blending (e.g. with VST). More...
 
static const int64_t varjo_SubmitFlag_InvertAlpha = 4
 Invert alpha channel before blending. More...
 

Data Structure Documentation

◆ varjo_Matrix

struct varjo_Matrix

Double precision 4x4 matrix.

The matrix usage convention is that they are stored in column-major order and transforms are stacked before column-vector points when multiplying. That is, a pure translation matrix will have the position offset in elements 12..14.

Unless otherwise specified, the coordinate system is right-handed: X goes right, Y goes up and negative Z goes forward.

Data Fields
double value[16]

◆ varjo_Ray

struct varjo_Ray

Ray is a vector starting from an origin.

Data Fields
double forward[3] Direction of the ray.
double origin[3] Origin of the ray.

◆ varjo_Vector2Df

struct varjo_Vector2Df

32bit floating point 2D vector.

Data Fields
float x X coordinate.
float y Y coordinate.

◆ varjo_Vector3D

struct varjo_Vector3D
Data Fields
double x X coordinate.
double y Y coordinate.
double z Z coordinate.

◆ varjo_Mesh2Df

struct varjo_Mesh2Df

2D triangle list mesh.

Data Fields
int32_t vertexCount Number of vertices.
struct varjo_Vector2Df * vertices Vertex data.

◆ varjo_AlignedView

struct varjo_AlignedView

Axis aligned tangents from a projection matrix.

The tangents are between the edge planes and projection centre and defined so that if the projection is centered, all of them are positive.

Data Fields
double projectionBottom Tangent of the bottom edge angle.
double projectionLeft Tangent of the left edge angle.
double projectionRight Tangent of the right edge angle.
double projectionTop Tangent of the top edge angle.

◆ varjo_ViewInfo

struct varjo_ViewInfo

View information for a frame.

Data Fields
varjo_Bool enabled Whether this view should be rendered during current frame.
int32_t preferredHeight Preferred height of the viewport.
int32_t preferredWidth Preferred width of the viewport.
double projectionMatrix[16] The projection matrix. See varjo_Matrix for conventions.
int32_t reserved Unused.
double viewMatrix[16] The view matrix, world-to-eye. See varjo_Matrix for conventions.

◆ varjo_FrameInfo

struct varjo_FrameInfo

Per-frame information.

Data Fields
varjo_Nanoseconds displayTime When the frame is estimated to be displayed.
int64_t frameNumber Current frame number.
struct varjo_ViewInfo * views Views for the frame. Array size is varjo_GraphicsInfo::viewCount.

◆ varjo_ViewDescription

struct varjo_ViewDescription

View description.

Information about the associated eye, display and resolution.

Data Fields
varjo_DisplayType display Which display the view is for.
varjo_Eye eye Which eye the view is for.
int32_t height Default view height in pixels.
int32_t width Default view width in pixels.

◆ varjo_Gaze

struct varjo_Gaze

Gaze tracker vectors and tracking state.

Data Fields
varjo_Nanoseconds captureTime Varjo time when this data was captured, see varjo_GetCurrentTime()
double focusDistance Estimated gaze direction focus point distance.
int64_t frameNumber Frame number, increases monotonically.
struct varjo_Ray gaze Normalized gaze direction ray.
struct varjo_Ray leftEye Left eye gaze ray.
double leftPupilSize Normalized [0..1] left eye pupil size.
varjo_GazeEyeStatus leftStatus Status of left eye data.
struct varjo_Ray rightEye Right eye gaze ray.
double rightPupilSize Normalized [0..1] right eye pupil size.
varjo_GazeEyeStatus rightStatus Status of right eye data.
double stability Focus point stability.
varjo_GazeStatus status Tracking main status.

◆ varjo_SwapChainConfig

struct varjo_SwapChainConfig

Config for swap chain texture size and count.

Data Fields
int32_t numberOfTextures Number of swap chain textures.
int32_t reserved Unused.
int32_t textureHeight Texture height.
int32_t textureWidth Texture width.

◆ varjo_SwapChainLimits

struct varjo_SwapChainLimits

Minimum and maximum limits for swap chain texture count and size.

Data Fields
int32_t maximumNumberOfTextures Maximum number of swap chain textures.
int32_t maximumTextureHeight Maximum height of the swap chain textures.
int32_t maximumTextureWidth Maximum width of the swap chain textures.
int32_t minimumNumberOfTextures Minimum number of swap chain textures.
int32_t minimumTextureHeight Minimum height of the swap chain textures.
int32_t minimumTextureWidth Minimum width of the swap chain textures.

◆ varjo_Viewport

struct varjo_Viewport

Viewport rectangle that defines viewport area.

Data Fields
int32_t height Height of the view in pixels.
int32_t width Width of the view in pixels.
int32_t x X coordinate for the view in pixels.
int32_t y Y coordinate for the view in pixels.

◆ varjo_GraphicsInfo

struct varjo_GraphicsInfo

General graphics information.

Data Fields
int32_t swapChainTextureCount Number of swap chain textures.
int32_t swapChainTextureHeight Swap chain texture height.
struct varjo_Texture * swapChainTextures Swap chain textures.
int32_t swapChainTextureWidth Swap chain texture width.
int32_t viewCount Number of views.

◆ varjo_Texture

struct varjo_Texture

API-agnostic texture handle.

Use varjo_FromD3D11Texture, varjo_ToD3D11Texture varjo_FromGLTexture and varjo_ToGLTexture to convert textures between Varjo and graphics APIs.

Data Fields
int64_t reserved[4]

◆ varjo_SubmitInfo

struct varjo_SubmitInfo

Information required to submit a frame to the Compositor.

Data Fields
varjo_SubmitFlags flags Additional submit flags.
int64_t frameNumber Current frame number.
struct varjo_Texture * textures Textures to submit.
struct varjo_Viewport * viewports Viewports to submit.

Typedef Documentation

◆ varjo_Bool

typedef int32_t varjo_Bool

◆ varjo_DisplayType

typedef int64_t varjo_DisplayType

◆ varjo_Error

typedef int64_t varjo_Error

◆ varjo_EulerOrder

typedef int64_t varjo_EulerOrder

◆ varjo_Eye

typedef int64_t varjo_Eye

◆ varjo_GazeEyeStatus

typedef int64_t varjo_GazeEyeStatus

◆ varjo_GazeStatus

typedef int64_t varjo_GazeStatus

Gaze statuses.

◆ varjo_Handedness

typedef int64_t varjo_Handedness

◆ varjo_Nanoseconds

typedef int64_t varjo_Nanoseconds

Time in nanoseconds.

Absolute times are relative to an epoch which is constant during execution of the program.

◆ varjo_PoseType

typedef int64_t varjo_PoseType

◆ varjo_PropertyKey

typedef int64_t varjo_PropertyKey

System status properties.

◆ varjo_RenderAPI

typedef int64_t varjo_RenderAPI

Render API flags.

◆ varjo_RotationDirection

typedef int64_t varjo_RotationDirection

◆ varjo_RotationReset

typedef int64_t varjo_RotationReset

Rotation reset types.

◆ varjo_SubmitFlags

typedef int64_t varjo_SubmitFlags

Submit flags.

◆ varjo_TextureFormat

typedef int64_t varjo_TextureFormat

◆ varjo_WindingOrder

typedef int64_t varjo_WindingOrder

Variable Documentation

◆ varjo_DepthTextureFormat_D32_FLOAT

const varjo_TextureFormat varjo_DepthTextureFormat_D32_FLOAT = 0x3
static

◆ varjo_DisplayType_Context

const varjo_DisplayType varjo_DisplayType_Context = 0x2
static

Context display.

◆ varjo_DisplayType_Focus

const varjo_DisplayType varjo_DisplayType_Focus = 0x1
static

Focus display.

◆ varjo_Error_AcquireD3D11DeviceHandleFailed

const varjo_Error varjo_Error_AcquireD3D11DeviceHandleFailed = 202
static

◆ varjo_Error_ConnectToProgramManagerFailed

const varjo_Error varjo_Error_ConnectToProgramManagerFailed = 300
static

◆ varjo_Error_CreateIPCFailed

const varjo_Error varjo_Error_CreateIPCFailed = 303
static

◆ varjo_Error_D3D11AlreadyInitialized

const varjo_Error varjo_Error_D3D11AlreadyInitialized = 213
static

◆ varjo_Error_D3D11DeviceCreationFailed

const varjo_Error varjo_Error_D3D11DeviceCreationFailed = 200
static

◆ varjo_Error_D3D11ShutDownFailed

const varjo_Error varjo_Error_D3D11ShutDownFailed = 214
static

◆ varjo_Error_FrameAlreadyStarted

const varjo_Error varjo_Error_FrameAlreadyStarted = 6
static

◆ varjo_Error_FrameNotStarted

const varjo_Error varjo_Error_FrameNotStarted = 5
static

◆ varjo_Error_GazeAlreadyInitialized

const varjo_Error varjo_Error_GazeAlreadyInitialized = 102
static

◆ varjo_Error_GazeNotAllowed

const varjo_Error varjo_Error_GazeNotAllowed = 103
static

◆ varjo_Error_GazeNotConnected

const varjo_Error varjo_Error_GazeNotConnected = 101
static

◆ varjo_Error_GazeNotInitialized

const varjo_Error varjo_Error_GazeNotInitialized = 100
static

◆ varjo_Error_GetD3D11_1DeviceFailed

const varjo_Error varjo_Error_GetD3D11_1DeviceFailed = 201
static

◆ varjo_Error_GLAcquireD3D11TextureHandleFailed

const varjo_Error varjo_Error_GLAcquireD3D11TextureHandleFailed = 206
static

◆ varjo_Error_GLAlreadyInitialized

const varjo_Error varjo_Error_GLAlreadyInitialized = 215
static

◆ varjo_Error_GLBackBufferAlreadyCreated

const varjo_Error varjo_Error_GLBackBufferAlreadyCreated = 203
static

◆ varjo_Error_GLCopyTextureFailed

const varjo_Error varjo_Error_GLCopyTextureFailed = 208
static

◆ varjo_Error_GLCreateTextureFailed

const varjo_Error varjo_Error_GLCreateTextureFailed = 205
static

◆ varjo_Error_GLExtensionNotFound

const varjo_Error varjo_Error_GLExtensionNotFound = 204
static

◆ varjo_Error_GLLockTextureFailed

const varjo_Error varjo_Error_GLLockTextureFailed = 207
static

◆ varjo_Error_GLShutDownFailed

const varjo_Error varjo_Error_GLShutDownFailed = 216
static

◆ varjo_Error_GraphicsNotInitialized

const varjo_Error varjo_Error_GraphicsNotInitialized = 4
static

◆ varjo_Error_GraphicsShutDownFailed

const varjo_Error varjo_Error_GraphicsShutDownFailed = 222
static

◆ varjo_Error_InitializeCompositorLinkFailed

const varjo_Error varjo_Error_InitializeCompositorLinkFailed = 304
static

◆ varjo_Error_InvalidClipDistances

const varjo_Error varjo_Error_InvalidClipDistances = 229
static

◆ varjo_Error_InvalidFrameNumber

const varjo_Error varjo_Error_InvalidFrameNumber = 224
static

◆ varjo_Error_InvalidMatrix

const varjo_Error varjo_Error_InvalidMatrix = 226
static

◆ varjo_Error_InvalidPoseType

const varjo_Error varjo_Error_InvalidPoseType = 8
static

◆ varjo_Error_InvalidRenderAPI

const varjo_Error varjo_Error_InvalidRenderAPI = 225
static

◆ varjo_Error_InvalidSession

const varjo_Error varjo_Error_InvalidSession = 1
static

◆ varjo_Error_InvalidVersion

const varjo_Error varjo_Error_InvalidVersion = 3
static

◆ varjo_Error_MixingTextures

const varjo_Error varjo_Error_MixingTextures = 10
static

◆ varjo_Error_NaN

const varjo_Error varjo_Error_NaN = 11
static

◆ varjo_Error_NoCompositorLink

const varjo_Error varjo_Error_NoCompositorLink = 306
static

◆ varjo_Error_NoHMDConnected

const varjo_Error varjo_Error_NoHMDConnected = 12
static

◆ varjo_Error_NullPointer

const varjo_Error varjo_Error_NullPointer = 9
static

◆ varjo_Error_OpenSharedEventFailed

const varjo_Error varjo_Error_OpenSharedEventFailed = 302
static

◆ varjo_Error_OpenSharedTextureFailed

const varjo_Error varjo_Error_OpenSharedTextureFailed = 209
static

◆ varjo_Error_OutOfMemory

const varjo_Error varjo_Error_OutOfMemory = 2
static

◆ varjo_Error_RequestCreateSwapChainFailed

const varjo_Error varjo_Error_RequestCreateSwapChainFailed = 307
static

◆ varjo_Error_RequestSwapChainFormatFailed

const varjo_Error varjo_Error_RequestSwapChainFormatFailed = 301
static

◆ varjo_Error_RequestViewInfoFailed

const varjo_Error varjo_Error_RequestViewInfoFailed = 305
static

◆ varjo_Error_SwapChainConfigInvalidHeight

const varjo_Error varjo_Error_SwapChainConfigInvalidHeight = 220
static

◆ varjo_Error_SwapChainConfigInvalidTextureCount

const varjo_Error varjo_Error_SwapChainConfigInvalidTextureCount = 221
static

◆ varjo_Error_SwapChainConfigInvalidWidth

const varjo_Error varjo_Error_SwapChainConfigInvalidWidth = 219
static

◆ varjo_Error_SwapChainInvalidTextureIndex

const varjo_Error varjo_Error_SwapChainInvalidTextureIndex = 230
static

◆ varjo_Error_TextureIsNull

const varjo_Error varjo_Error_TextureIsNull = 223
static

◆ varjo_Error_TextureMutexAcquireFailed

const varjo_Error varjo_Error_TextureMutexAcquireFailed = 211
static

◆ varjo_Error_TextureMutexQueryFailed

const varjo_Error varjo_Error_TextureMutexQueryFailed = 210
static

◆ varjo_Error_TextureMutexReleaseFailed

const varjo_Error varjo_Error_TextureMutexReleaseFailed = 212
static

◆ varjo_Error_Unknown

const varjo_Error varjo_Error_Unknown = -1
static

◆ varjo_Error_UnsupportedDepthFormat

const varjo_Error varjo_Error_UnsupportedDepthFormat = 227
static

◆ varjo_Error_UnsupportedTextureFormat

const varjo_Error varjo_Error_UnsupportedTextureFormat = 217
static

◆ varjo_Error_ViewIndexOutOfBounds

const varjo_Error varjo_Error_ViewIndexOutOfBounds = 7
static

◆ varjo_EulerOrder_XYZ

const varjo_EulerOrder varjo_EulerOrder_XYZ = 0
static

◆ varjo_EulerOrder_XZY

const varjo_EulerOrder varjo_EulerOrder_XZY = 2
static

◆ varjo_EulerOrder_YXZ

const varjo_EulerOrder varjo_EulerOrder_YXZ = 4
static

◆ varjo_EulerOrder_YZX

const varjo_EulerOrder varjo_EulerOrder_YZX = 3
static

◆ varjo_EulerOrder_ZXY

const varjo_EulerOrder varjo_EulerOrder_ZXY = 5
static

◆ varjo_EulerOrder_ZYX

const varjo_EulerOrder varjo_EulerOrder_ZYX = 1
static

◆ varjo_Eye_Left

const varjo_Eye varjo_Eye_Left = 0x1
static

Left eye.

◆ varjo_Eye_Right

const varjo_Eye varjo_Eye_Right = 0x2
static

Right eye.

◆ varjo_False

const varjo_Bool varjo_False = 0
static

◆ varjo_GazeEyeStatus_Compensated

const varjo_GazeEyeStatus varjo_GazeEyeStatus_Compensated = 2
static

Eye is tracked but quality compromised (e.g. headset has moved after calibration).

◆ varjo_GazeEyeStatus_Invalid

const varjo_GazeEyeStatus varjo_GazeEyeStatus_Invalid = 0
static

Eye is not tracked. (e.g. not visible or is shut).

◆ varjo_GazeEyeStatus_Tracked

const varjo_GazeEyeStatus varjo_GazeEyeStatus_Tracked = 3
static

Eye is tracked.

◆ varjo_GazeEyeStatus_Visible

const varjo_GazeEyeStatus varjo_GazeEyeStatus_Visible = 1
static

Eye is visible but not reliably tracked (e.g. saccade or blink).

◆ varjo_GazeStatus_Adjust

const varjo_GazeStatus varjo_GazeStatus_Adjust = 1
static

User is wearing the device but gaze tracking is in middle of adjustment.

◆ varjo_GazeStatus_Invalid

const varjo_GazeStatus varjo_GazeStatus_Invalid = 0
static

Data is not available, user is not wearing the device or eyes can not be found.

◆ varjo_GazeStatus_Valid

const varjo_GazeStatus varjo_GazeStatus_Valid = 2
static

Data is valid.

◆ varjo_Handedness_LeftHanded

const varjo_Handedness varjo_Handedness_LeftHanded = -1
static

◆ varjo_Handedness_RightHanded

const varjo_Handedness varjo_Handedness_RightHanded = 1
static

◆ varjo_NoError

const varjo_Error varjo_NoError = 0
static

◆ varjo_PoseType_Center

const varjo_PoseType varjo_PoseType_Center = 0x2
static

Pose for the head (in the middle of the eyes).

◆ varjo_PoseType_LeftEye

const varjo_PoseType varjo_PoseType_LeftEye = 0x1
static

Pose for the left eye.

◆ varjo_PoseType_RightEye

const varjo_PoseType varjo_PoseType_RightEye = 0x3
static

Pose for the right eye.

◆ varjo_PropertyKey_GazeAllowed

const varjo_PropertyKey varjo_PropertyKey_GazeAllowed = 0xA003
static

boolean. Is the HMD gaze tracker allowed.

◆ varjo_PropertyKey_GazeCalibrated

const varjo_PropertyKey varjo_PropertyKey_GazeCalibrated = 0xA001
static

boolean. Is the HMD gaze tracker calibrated.

◆ varjo_PropertyKey_GazeCalibrating

const varjo_PropertyKey varjo_PropertyKey_GazeCalibrating = 0xA000
static

boolean. Is system currently calibrating the HMD gaze tracker.

◆ varjo_PropertyKey_GazeCalibrationQuality

const varjo_PropertyKey varjo_PropertyKey_GazeCalibrationQuality = 0xA002
static

float [0.0-1.0]. Quality of the gaze calibration.

◆ varjo_PropertyKey_GazeIPDEstimate

const varjo_PropertyKey varjo_PropertyKey_GazeIPDEstimate = 0xA010
static

float. IPD distance estimate in millimeters.

◆ varjo_PropertyKey_Invalid

const varjo_PropertyKey varjo_PropertyKey_Invalid = 0x0
static

Invalid property key.

◆ varjo_RenderAPI_D3D11

const varjo_RenderAPI varjo_RenderAPI_D3D11 = 0x1
static

Direct3D11 rendering API.

◆ varjo_RenderAPI_GL

const varjo_RenderAPI varjo_RenderAPI_GL = 0x2
static

OpenGL rendering API.

◆ varjo_RotationDirection_Clockwise

const varjo_RotationDirection varjo_RotationDirection_Clockwise = -1
static

◆ varjo_RotationDirection_CounterClockwise

const varjo_RotationDirection varjo_RotationDirection_CounterClockwise = 1
static

◆ varjo_RotationReset_All

const varjo_RotationReset varjo_RotationReset_All = 7
static

All rotation axes are reset.

◆ varjo_RotationReset_None

const varjo_RotationReset varjo_RotationReset_None = 0
static

Rotation is not reset.

◆ varjo_RotationReset_Yaw

const varjo_RotationReset varjo_RotationReset_Yaw = 1
static

Yaw rotation (around up Y axis) is reset.

◆ varjo_SubmitFlag_Async

const int64_t varjo_SubmitFlag_Async = 1
static

Makes varjo_EndFrame return immediately unless there is already a submittion in progress.

◆ varjo_SubmitFlag_InvertAlpha

const int64_t varjo_SubmitFlag_InvertAlpha = 4
static

Invert alpha channel before blending.

◆ varjo_SubmitFlag_Opaque

const int64_t varjo_SubmitFlag_Opaque = 2
static

Frame is opaque and doesn't need blending (e.g. with VST).

◆ varjo_TextureFormat_B8G8R8A8_SRGB

const varjo_TextureFormat varjo_TextureFormat_B8G8R8A8_SRGB = 0x2
static

sRgb 8-bit BGRA format

32-bit floating point depth format

◆ varjo_TextureFormat_R8B8G8A8_SRGB

const varjo_TextureFormat varjo_TextureFormat_R8B8G8A8_SRGB = 0x1
static

sRgb 8-bit RGBA format (deprecated due to a typo.)

◆ varjo_TextureFormat_R8G8B8A8_SRGB

const varjo_TextureFormat varjo_TextureFormat_R8G8B8A8_SRGB = 0x1
static

sRgb 8-bit RGBA format

◆ varjo_True

const varjo_Bool varjo_True = 1
static

◆ varjo_WindingOrder_Clockwise

const varjo_WindingOrder varjo_WindingOrder_Clockwise = 0x1
static

Clockwise triangle winding.

◆ varjo_WindingOrder_CounterClockwise

const varjo_WindingOrder varjo_WindingOrder_CounterClockwise = 0x2
static

Counter-clockwise triangle winding.