Varjo Native SDK
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_Matrix3x3
 Double precision 3x3 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_Vector3Df
 
struct  varjo_Vector3Di
 
struct  varjo_Size3D
 64bit floating point size of a 3D object. More...
 
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_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_Texture
 API-agnostic texture handle. More...
 
struct  varjo_GazeParameters
 Parameters passed to varjo_GazeInitWithParameters function. More...
 
struct  varjo_GazeCalibrationParameters
 Parameters passed to varjo_RequestGazeCalibrationWithParameters function. More...
 
struct  varjo_FovTangents
 
struct  varjo_FoveatedFovTangents_Hints
 
struct  varjo_ShadingRateTable
 
struct  varjo_StructureExtension
 
struct  varjo_VariableRateShadingConfig
 

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 int32_t varjo_GazeEyeCalibrationQuality
 
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_ClipRange
 
typedef int64_t varjo_SubmitFlags
 Submit flags. More...
 
typedef int64_t varjo_TextureSize_Type
 
typedef int64_t varjo_TextureSize_Type_Mask
 
typedef int64_t varjo_VariableRateShadingFlags
 
typedef int varjo_ShadingRate
 
typedef int64_t varjo_StructureType
 

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_ValidationFailure = 13
 
static const varjo_Error varjo_Error_IndexOutOfBounds = 14
 
static const varjo_Error varjo_Error_AlreadyLocked = 15
 
static const varjo_Error varjo_Error_NotLocked = 16
 
static const varjo_Error varjo_Error_InvalidSize = 17
 
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_GazeInvalidParameter = 104
 
static const varjo_Error varjo_Error_GazeUnsupportedParameter = 105
 
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_D3D11CreateTextureFailed = 231
 
static const varjo_Error varjo_Error_InvalidSwapChainRect = 232
 
static const varjo_Error varjo_Error_ViewDepthExtensionValidationFailure = 233
 
static const varjo_Error varjo_Error_D3D11OnD12DeviceCreationFailed = 234
 
static const varjo_Error varjo_Error_D3D12CreateTextureFailed = 235
 
static const varjo_Error varjo_Error_InvalidSwapChain = 236
 
static const varjo_Error varjo_Error_WrongSwapChainTextureFormat = 237
 
static const varjo_Error varjo_Error_InvalidViewExtension = 238
 
static const varjo_Error varjo_Error_InvalidViewport = 239
 
static const varjo_Error varjo_Error_GraphicsError = 240
 
static const varjo_Error varjo_Error_InvalidTextureSizeType = 241
 
static const varjo_Error varjo_Error_SwapChainTextureIsNotReleased = 242
 
static const varjo_Error varjo_Error_GazeInvalid = 243
 
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_Error_RequestFailed = 700
 
static const varjo_Error varjo_Error_OperationFailed = 701
 
static const varjo_Error varjo_Error_NotAvailable = 702
 
static const varjo_Error varjo_Error_CapabilityNotAvailable = 703
 
static const varjo_Error varjo_Error_CameraAlreadyLocked = 704
 
static const varjo_Error varjo_Error_CameraNotLocked = 705
 
static const varjo_Error varjo_Error_CameraInvalidPropertyType = 706
 
static const varjo_Error varjo_Error_CameraInvalidPropertyValue = 707
 
static const varjo_Error varjo_Error_CameraInvalidPropertyMode = 708
 
static const varjo_Error varjo_Error_ChromaKeyAlreadyLocked = 709
 
static const varjo_Error varjo_Error_ChromaKeyNotLocked = 710
 
static const varjo_Error varjo_Error_ChromaKeyInvalidType = 711
 
static const varjo_Error varjo_Error_ChromaKeyEstimatorAlreadyRunning = 712
 
static const varjo_Error varjo_Error_ChromaKeyEstimatorNotRunning = 713
 
static const varjo_Error varjo_Error_DataStreamInvalidCallback = 800
 
static const varjo_Error varjo_Error_DataStreamInvalidId = 801
 
static const varjo_Error varjo_Error_DataStreamAlreadyInUse = 802
 
static const varjo_Error varjo_Error_DataStreamNotInUse = 803
 
static const varjo_Error varjo_Error_DataStreamBufferInvalidId = 804
 
static const varjo_Error varjo_Error_DataStreamBufferAlreadyLocked = 805
 
static const varjo_Error varjo_Error_DataStreamBufferNotLocked = 806
 
static const varjo_Error varjo_Error_DataStreamFrameExpired = 807
 
static const varjo_Error varjo_Error_DataStreamDataNotAvailable = 808
 
static const varjo_Error varjo_Error_WorldObjectMarkersNotInitialized = 900
 
static const varjo_Error varjo_Error_WorldComponentDoesNotExist = 901
 
static const varjo_Error varjo_Error_WorldMarkerExpirationDurationIsNegative = 902
 
static const varjo_Error varjo_Error_InvalidFoveationMode = 1000
 
static const varjo_Error varjo_Error_UnableToInitializeVariableRateShading = 1001
 
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_GazeEyeCalibrationQuality varjo_GazeEyeCalibrationQuality_Invalid = 0
 Gaze calibration was not performed or failed. More...
 
static const varjo_GazeEyeCalibrationQuality varjo_GazeEyeCalibrationQuality_Low = 1
 Quality of performed gaze calibration assessed as low. More...
 
static const varjo_GazeEyeCalibrationQuality varjo_GazeEyeCalibrationQuality_Medium = 2
 Quality of performed gaze calibration assessed as medium. More...
 
static const varjo_GazeEyeCalibrationQuality varjo_GazeEyeCalibrationQuality_High = 3
 Quality of performed gaze calibration assessed as high. 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_GazeEyeCalibrationQuality_Left
 float [0.0-1.0]. Quality assessment of the left eye gaze calibration. More...
 
static const varjo_PropertyKey varjo_PropertyKey_GazeEyeCalibrationQuality_Right
 float [0.0-1.0]. Quality assessment of the right eye gaze calibration. More...
 
static const varjo_PropertyKey varjo_PropertyKey_GazeIPDEstimate = 0xA010
 float. IPD distance estimate in millimeters. More...
 
static const varjo_PropertyKey varjo_PropertyKey_HMDConnected = 0xE001
 boolean. Is HMD connected. More...
 
static const varjo_PropertyKey varjo_PropertyKey_HMDProductName = 0xE002
 string. Product name. More...
 
static const varjo_PropertyKey varjo_PropertyKey_HMDSerialNumber = 0xE003
 string. Product serial number. More...
 
static const varjo_PropertyKey varjo_PropertyKey_MRAvailable = 0xD000
 boolean. Is Mixed Reality capable hardware present. 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_INVALID = 0
 Invalid format. More...
 
static const varjo_TextureFormat varjo_TextureFormat_R8G8B8A8_SRGB = 1
 sRgb 8-bit RGBA format More...
 
static const varjo_TextureFormat varjo_TextureFormat_B8G8R8A8_SRGB = 2
 sRgb 8-bit BGRA format More...
 
static const varjo_TextureFormat varjo_DepthTextureFormat_D32_FLOAT = 3
 32-bit floating point depth format More...
 
static const varjo_TextureFormat varjo_MaskTextureFormat_A8_UNORM = 4
 8-bit alpha mask More...
 
static const varjo_TextureFormat varjo_TextureFormat_YUV422 = 5
 YUV 4:2:2 semi-planar, 8bit Y plane, 8+8bit interleaved UV plane. More...
 
static const varjo_TextureFormat varjo_TextureFormat_RGBA16_FLOAT = 6
 RGBA 16 bit floating point. More...
 
static const varjo_TextureFormat varjo_DepthTextureFormat_D24_UNORM_S8_UINT = 7
 24-bit UNORM depth and 8-bit UINT stencil format More...
 
static const varjo_TextureFormat varjo_DepthTextureFormat_D32_FLOAT_S8_UINT = 8
 32-bit FLOAT depth abd 8-bit UINT stencil format More...
 
static const varjo_TextureFormat varjo_TextureFormat_R8G8B8A8_UNORM = 9
 Rgb 8-bit RGBA format. More...
 
static const varjo_TextureFormat varjo_TextureFormat_R32_FLOAT = 10
 Single channel 32-bit float format. More...
 
static const varjo_TextureFormat varjo_TextureFormat_R32_UINT = 11
 Single channel 32-bit uint format. More...
 
static const varjo_TextureFormat varjo_VelocityTextureFormat_R8G8B8A8_UINT = 12
 Two 16-bit integers packed into 4 bytes. More...
 
static const varjo_TextureFormat varjo_TextureFormat_NV12
 YUV 4:2:0 semi-planar in NV12 format (8bit Y plane, 8+8bit interleaved UV plane in half resolution) More...
 
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_RenderAPI varjo_RenderAPI_D3D12 = 0x3
 Direct3D12 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 varjo_ClipRange varjo_ClipRangeZeroToOne = 0
 
static const varjo_ClipRange varjo_ClipRangeMinusOneToOne = 1
 
static const char * varjo_GazeParametersKey_OutputFilterType = "OutputFilterType"
 Gaze parameters. More...
 
static const char * varjo_GazeParametersValue_OutputFilterStandard = "Standard"
 Standard smoothing output filter. More...
 
static const char * varjo_GazeParametersValue_OutputFilterNone = "None"
 Output filter disabled. More...
 
static const char * varjo_GazeParametersKey_OutputFrequency = "OutputFrequency"
 Gaze output update frequency. More...
 
static const char * varjo_GazeParametersValue_OutputFrequency100Hz = "OutputFrequency100Hz"
 100Hz output frequency. Default mode. More...
 
static const char * varjo_GazeParametersValue_OutputFrequency200Hz = "OutputFrequency200Hz"
 200Hz output frequency. More...
 
static const char * varjo_GazeParametersValue_OutputFrequencyMaximumSupported
 Maximum output frequency supported by connected HMD. Currently it is either 100hz or 200Hz. More...
 
static const char * varjo_GazeCalibrationParametersKey_CalibrationType = "GazeCalibrationType"
 Gaze calibration parameters. More...
 
static const char * varjo_GazeCalibrationParametersValue_CalibrationLegacy = "Legacy"
 Legacy gaze calibration. More...
 
static const char * varjo_GazeCalibrationParametersValue_CalibrationFast = "Fast"
 New fast gaze calibration. More...
 
static VARJORUNTIME_DEPRECATED const char * varjo_GazeCalibrationParametersKey_OutputFilterType = "OutputFilterType"
 
static VARJORUNTIME_DEPRECATED const char * varjo_GazeCalibrationParametersValue_OutputFilterStandard = "Standard"
 
static VARJORUNTIME_DEPRECATED const char * varjo_GazeCalibrationParametersValue_OutputFilterNone = "None"
 
const varjo_TextureSize_Type varjo_TextureSize_Type_BestQuality = 0
 Maximum resolution which provides best possible quality. More...
 
const varjo_TextureSize_Type varjo_TextureSize_Type_Recommended
 Recommended resolution, may not be as large as best quality but still provides great visual results. More...
 
const varjo_TextureSize_Type varjo_TextureSize_Type_DynamicFoveation = 2
 Best resolution for foveation mode. More...
 
const varjo_TextureSize_Type varjo_TextureSize_Type_Stereo = 3
 Resolution for stereo mode. More...
 
const varjo_TextureSize_Type_Mask varjo_TextureSize_Type_BestQuality_Mask = 0x1
 Bitmask for BestQuality texture size type. More...
 
const varjo_TextureSize_Type_Mask varjo_TextureSize_Type_Recommended_Mask = 0x2
 Bitmask for Recommended texture size type. More...
 
const varjo_TextureSize_Type_Mask varjo_TextureSize_Type_DynamicFoveation_Mask = 0x4
 Bitmask for DynamicFoveation texture size type. More...
 
const varjo_TextureSize_Type_Mask varjo_TextureSize_Type_Stereo_Mask = 0x8
 Bitmask for Stereo texture size type. More...
 
const varjo_VariableRateShadingFlags varjo_VariableRateShadingFlag_None = 0
 
const varjo_VariableRateShadingFlags varjo_VariableRateShadingFlag_Stereo = 1
 Generates VRS map for stereo mode (2 views). More...
 
const varjo_VariableRateShadingFlags varjo_VariableRateShadingFlag_Gaze = 2
 Generates VRS map taking gaze into account. More...
 
const varjo_VariableRateShadingFlags varjo_VariableRateShadingFlag_GazeCombined
 Generates VRS map taking gaze into account with left and right gaze on one viewport. More...
 
const varjo_VariableRateShadingFlags varjo_VariableRateShadingFlag_OcclusionMap
 Generates VRS with coarsest shading rate in corners which are not visible. More...
 
static const varjo_ShadingRate varjo_ShadingRate_Cull = 0
 
static const varjo_ShadingRate varjo_ShadingRate_X16PerPixel = 1
 
static const varjo_ShadingRate varjo_ShadingRate_X8PerPixel = 2
 
static const varjo_ShadingRate varjo_ShadingRate_X4PerPixel = 3
 
static const varjo_ShadingRate varjo_ShadingRate_X2PerPixel = 4
 
static const varjo_ShadingRate varjo_ShadingRate_1x1 = 5
 
static const varjo_ShadingRate varjo_ShadingRate_1x2 = 6
 
static const varjo_ShadingRate varjo_ShadingRate_2x1 = 7
 
static const varjo_ShadingRate varjo_ShadingRate_2x2 = 8
 
static const varjo_ShadingRate varjo_ShadingRate_2x4 = 9
 
static const varjo_ShadingRate varjo_ShadingRate_4x2 = 10
 
static const varjo_ShadingRate varjo_ShadingRate_4x4 = 11
 

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_Matrix3x3

struct varjo_Matrix3x3

Double precision 3x3 matrix.

The matrix usage convention is that values are stored in column-major order.

Data Fields
double value[9]

◆ 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_Vector3Df

struct varjo_Vector3Df
Data Fields
float x X coordinate.
float y Y coordinate.
float z Z coordinate.

◆ varjo_Vector3Di

struct varjo_Vector3Di
Data Fields
int32_t x X coordinate.
int32_t y Y coordinate.
int32_t z Z coordinate.

◆ varjo_Size3D

struct varjo_Size3D

64bit floating point size of a 3D object.

Data Fields
double depth Depth along Z-axis.
double height Height along Y-axis.
double width Width along X-axis.

◆ 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_GetViewCount.

◆ 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_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_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_GazeParameters

struct varjo_GazeParameters

Parameters passed to varjo_GazeInitWithParameters function.

Data Fields
const char * key
const char * value

◆ varjo_GazeCalibrationParameters

struct varjo_GazeCalibrationParameters

Parameters passed to varjo_RequestGazeCalibrationWithParameters function.

Data Fields
const char * key
const char * value

◆ varjo_FovTangents

struct varjo_FovTangents
Data Fields
double bottom
double left
double right
double top

◆ varjo_FoveatedFovTangents_Hints

struct varjo_FoveatedFovTangents_Hints
Data Fields
int64_t reserved[128]

◆ varjo_ShadingRateTable

struct varjo_ShadingRateTable
Data Fields
varjo_ShadingRate shadingRates[16]

◆ varjo_StructureExtension

struct varjo_StructureExtension
Data Fields
struct varjo_StructureExtension * next
varjo_StructureType type

◆ varjo_VariableRateShadingConfig

struct varjo_VariableRateShadingConfig
Data Fields
varjo_VariableRateShadingFlags flags
struct varjo_Gaze gaze Valid gaze, returned by varjo_GetRenderingGaze().
float innerRadius Radius of the best quality shading rate of the foveated circle if gaze is enabled and calibrated (flags should contain varjo_VariableRateShadingFlag_Gaze).

Normalized value between 0 and 1 where 1 is half width of the viewport.

struct varjo_StructureExtension * next
float outerRadius Radius of the outer edge of foveated circle.

Medium quality shading rate is generated between range [innerRadius, outerRadius]. Should be bigger than innerRadius. Normalized value between 0 and 1 where 1 is half width of the viewport.

int32_t viewIndex View for which VRS map should be generated.
struct varjo_Viewport viewport Viewport where VRS map should be generated inside given texture (can be whole texture or a part of it).

Typedef Documentation

◆ varjo_Bool

typedef int32_t varjo_Bool

◆ varjo_ClipRange

typedef int64_t varjo_ClipRange

◆ 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_GazeEyeCalibrationQuality

◆ 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_ShadingRate

typedef int varjo_ShadingRate

◆ varjo_StructureType

typedef int64_t varjo_StructureType

◆ varjo_SubmitFlags

typedef int64_t varjo_SubmitFlags

Submit flags.

◆ varjo_TextureFormat

typedef int64_t varjo_TextureFormat

◆ varjo_TextureSize_Type

typedef int64_t varjo_TextureSize_Type

◆ varjo_TextureSize_Type_Mask

typedef int64_t varjo_TextureSize_Type_Mask

◆ varjo_VariableRateShadingFlags

◆ varjo_WindingOrder

typedef int64_t varjo_WindingOrder

Variable Documentation

◆ varjo_ClipRangeMinusOneToOne

const varjo_ClipRange varjo_ClipRangeMinusOneToOne = 1
static

◆ varjo_ClipRangeZeroToOne

const varjo_ClipRange varjo_ClipRangeZeroToOne = 0
static

◆ varjo_DepthTextureFormat_D24_UNORM_S8_UINT

const varjo_TextureFormat varjo_DepthTextureFormat_D24_UNORM_S8_UINT = 7
static

24-bit UNORM depth and 8-bit UINT stencil format

◆ varjo_DepthTextureFormat_D32_FLOAT

const varjo_TextureFormat varjo_DepthTextureFormat_D32_FLOAT = 3
static

32-bit floating point depth format

◆ varjo_DepthTextureFormat_D32_FLOAT_S8_UINT

const varjo_TextureFormat varjo_DepthTextureFormat_D32_FLOAT_S8_UINT = 8
static

32-bit FLOAT depth abd 8-bit UINT stencil format

◆ 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_AlreadyLocked

const varjo_Error varjo_Error_AlreadyLocked = 15
static

◆ varjo_Error_CameraAlreadyLocked

const varjo_Error varjo_Error_CameraAlreadyLocked = 704
static

◆ varjo_Error_CameraInvalidPropertyMode

const varjo_Error varjo_Error_CameraInvalidPropertyMode = 708
static

◆ varjo_Error_CameraInvalidPropertyType

const varjo_Error varjo_Error_CameraInvalidPropertyType = 706
static

◆ varjo_Error_CameraInvalidPropertyValue

const varjo_Error varjo_Error_CameraInvalidPropertyValue = 707
static

◆ varjo_Error_CameraNotLocked

const varjo_Error varjo_Error_CameraNotLocked = 705
static

◆ varjo_Error_CapabilityNotAvailable

const varjo_Error varjo_Error_CapabilityNotAvailable = 703
static

◆ varjo_Error_ChromaKeyAlreadyLocked

const varjo_Error varjo_Error_ChromaKeyAlreadyLocked = 709
static

◆ varjo_Error_ChromaKeyEstimatorAlreadyRunning

const varjo_Error varjo_Error_ChromaKeyEstimatorAlreadyRunning = 712
static

◆ varjo_Error_ChromaKeyEstimatorNotRunning

const varjo_Error varjo_Error_ChromaKeyEstimatorNotRunning = 713
static

◆ varjo_Error_ChromaKeyInvalidType

const varjo_Error varjo_Error_ChromaKeyInvalidType = 711
static

◆ varjo_Error_ChromaKeyNotLocked

const varjo_Error varjo_Error_ChromaKeyNotLocked = 710
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_D3D11CreateTextureFailed

const varjo_Error varjo_Error_D3D11CreateTextureFailed = 231
static

◆ varjo_Error_D3D11DeviceCreationFailed

const varjo_Error varjo_Error_D3D11DeviceCreationFailed = 200
static

◆ varjo_Error_D3D11OnD12DeviceCreationFailed

const varjo_Error varjo_Error_D3D11OnD12DeviceCreationFailed = 234
static

◆ varjo_Error_D3D11ShutDownFailed

const varjo_Error varjo_Error_D3D11ShutDownFailed = 214
static

◆ varjo_Error_D3D12CreateTextureFailed

const varjo_Error varjo_Error_D3D12CreateTextureFailed = 235
static

◆ varjo_Error_DataStreamAlreadyInUse

const varjo_Error varjo_Error_DataStreamAlreadyInUse = 802
static

◆ varjo_Error_DataStreamBufferAlreadyLocked

const varjo_Error varjo_Error_DataStreamBufferAlreadyLocked = 805
static

◆ varjo_Error_DataStreamBufferInvalidId

const varjo_Error varjo_Error_DataStreamBufferInvalidId = 804
static

◆ varjo_Error_DataStreamBufferNotLocked

const varjo_Error varjo_Error_DataStreamBufferNotLocked = 806
static

◆ varjo_Error_DataStreamDataNotAvailable

const varjo_Error varjo_Error_DataStreamDataNotAvailable = 808
static

◆ varjo_Error_DataStreamFrameExpired

const varjo_Error varjo_Error_DataStreamFrameExpired = 807
static

◆ varjo_Error_DataStreamInvalidCallback

const varjo_Error varjo_Error_DataStreamInvalidCallback = 800
static

◆ varjo_Error_DataStreamInvalidId

const varjo_Error varjo_Error_DataStreamInvalidId = 801
static

◆ varjo_Error_DataStreamNotInUse

const varjo_Error varjo_Error_DataStreamNotInUse = 803
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_GazeInvalid

const varjo_Error varjo_Error_GazeInvalid = 243
static

◆ varjo_Error_GazeInvalidParameter

const varjo_Error varjo_Error_GazeInvalidParameter = 104
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_GazeUnsupportedParameter

const varjo_Error varjo_Error_GazeUnsupportedParameter = 105
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_GraphicsError

const varjo_Error varjo_Error_GraphicsError = 240
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_IndexOutOfBounds

const varjo_Error varjo_Error_IndexOutOfBounds = 14
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_InvalidFoveationMode

const varjo_Error varjo_Error_InvalidFoveationMode = 1000
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_InvalidSize

const varjo_Error varjo_Error_InvalidSize = 17
static

◆ varjo_Error_InvalidSwapChain

const varjo_Error varjo_Error_InvalidSwapChain = 236
static

◆ varjo_Error_InvalidSwapChainRect

const varjo_Error varjo_Error_InvalidSwapChainRect = 232
static

◆ varjo_Error_InvalidTextureSizeType

const varjo_Error varjo_Error_InvalidTextureSizeType = 241
static

◆ varjo_Error_InvalidVersion

const varjo_Error varjo_Error_InvalidVersion = 3
static

◆ varjo_Error_InvalidViewExtension

const varjo_Error varjo_Error_InvalidViewExtension = 238
static

◆ varjo_Error_InvalidViewport

const varjo_Error varjo_Error_InvalidViewport = 239
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_NotAvailable

const varjo_Error varjo_Error_NotAvailable = 702
static

◆ varjo_Error_NotLocked

const varjo_Error varjo_Error_NotLocked = 16
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_OperationFailed

const varjo_Error varjo_Error_OperationFailed = 701
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_RequestFailed

const varjo_Error varjo_Error_RequestFailed = 700
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_SwapChainTextureIsNotReleased

const varjo_Error varjo_Error_SwapChainTextureIsNotReleased = 242
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_UnableToInitializeVariableRateShading

const varjo_Error varjo_Error_UnableToInitializeVariableRateShading = 1001
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_ValidationFailure

const varjo_Error varjo_Error_ValidationFailure = 13
static

◆ varjo_Error_ViewDepthExtensionValidationFailure

const varjo_Error varjo_Error_ViewDepthExtensionValidationFailure = 233
static

◆ varjo_Error_ViewIndexOutOfBounds

const varjo_Error varjo_Error_ViewIndexOutOfBounds = 7
static

◆ varjo_Error_WorldComponentDoesNotExist

const varjo_Error varjo_Error_WorldComponentDoesNotExist = 901
static

◆ varjo_Error_WorldMarkerExpirationDurationIsNegative

const varjo_Error varjo_Error_WorldMarkerExpirationDurationIsNegative = 902
static

◆ varjo_Error_WorldObjectMarkersNotInitialized

const varjo_Error varjo_Error_WorldObjectMarkersNotInitialized = 900
static

◆ varjo_Error_WrongSwapChainTextureFormat

const varjo_Error varjo_Error_WrongSwapChainTextureFormat = 237
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_GazeCalibrationParametersKey_CalibrationType

const char* varjo_GazeCalibrationParametersKey_CalibrationType = "GazeCalibrationType"
static

Gaze calibration parameters.

Gaze calibration type.

◆ varjo_GazeCalibrationParametersKey_OutputFilterType

VARJORUNTIME_DEPRECATED const char* varjo_GazeCalibrationParametersKey_OutputFilterType = "OutputFilterType"
static

◆ varjo_GazeCalibrationParametersValue_CalibrationFast

const char* varjo_GazeCalibrationParametersValue_CalibrationFast = "Fast"
static

New fast gaze calibration.

◆ varjo_GazeCalibrationParametersValue_CalibrationLegacy

const char* varjo_GazeCalibrationParametersValue_CalibrationLegacy = "Legacy"
static

Legacy gaze calibration.

◆ varjo_GazeCalibrationParametersValue_OutputFilterNone

VARJORUNTIME_DEPRECATED const char* varjo_GazeCalibrationParametersValue_OutputFilterNone = "None"
static

◆ varjo_GazeCalibrationParametersValue_OutputFilterStandard

VARJORUNTIME_DEPRECATED const char* varjo_GazeCalibrationParametersValue_OutputFilterStandard = "Standard"
static

◆ varjo_GazeEyeCalibrationQuality_High

const varjo_GazeEyeCalibrationQuality varjo_GazeEyeCalibrationQuality_High = 3
static

Quality of performed gaze calibration assessed as high.

◆ varjo_GazeEyeCalibrationQuality_Invalid

const varjo_GazeEyeCalibrationQuality varjo_GazeEyeCalibrationQuality_Invalid = 0
static

Gaze calibration was not performed or failed.

◆ varjo_GazeEyeCalibrationQuality_Low

const varjo_GazeEyeCalibrationQuality varjo_GazeEyeCalibrationQuality_Low = 1
static

Quality of performed gaze calibration assessed as low.

◆ varjo_GazeEyeCalibrationQuality_Medium

const varjo_GazeEyeCalibrationQuality varjo_GazeEyeCalibrationQuality_Medium = 2
static

Quality of performed gaze calibration assessed as medium.

◆ 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_GazeParametersKey_OutputFilterType

const char* varjo_GazeParametersKey_OutputFilterType = "OutputFilterType"
static

Gaze parameters.

Gaze output filter type.

◆ varjo_GazeParametersKey_OutputFrequency

const char* varjo_GazeParametersKey_OutputFrequency = "OutputFrequency"
static

Gaze output update frequency.

◆ varjo_GazeParametersValue_OutputFilterNone

const char* varjo_GazeParametersValue_OutputFilterNone = "None"
static

Output filter disabled.

◆ varjo_GazeParametersValue_OutputFilterStandard

const char* varjo_GazeParametersValue_OutputFilterStandard = "Standard"
static

Standard smoothing output filter.

◆ varjo_GazeParametersValue_OutputFrequency100Hz

const char* varjo_GazeParametersValue_OutputFrequency100Hz = "OutputFrequency100Hz"
static

100Hz output frequency. Default mode.

◆ varjo_GazeParametersValue_OutputFrequency200Hz

const char* varjo_GazeParametersValue_OutputFrequency200Hz = "OutputFrequency200Hz"
static

200Hz output frequency.

May be not supported on some Varjo devices. In that case varjo_Error_GazeUnsupportedParameter will be set.

◆ varjo_GazeParametersValue_OutputFrequencyMaximumSupported

const char* varjo_GazeParametersValue_OutputFrequencyMaximumSupported
static
Initial value:
=
"OutputFrequencyMaximumSupported"

Maximum output frequency supported by connected HMD. Currently it is either 100hz or 200Hz.

◆ 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_MaskTextureFormat_A8_UNORM

const varjo_TextureFormat varjo_MaskTextureFormat_A8_UNORM = 4
static

8-bit alpha mask

◆ 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_GazeEyeCalibrationQuality_Left

const varjo_PropertyKey varjo_PropertyKey_GazeEyeCalibrationQuality_Left
static
Initial value:
=
0xA004

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

◆ varjo_PropertyKey_GazeEyeCalibrationQuality_Right

const varjo_PropertyKey varjo_PropertyKey_GazeEyeCalibrationQuality_Right
static
Initial value:
=
0xA005

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

◆ varjo_PropertyKey_GazeIPDEstimate

const varjo_PropertyKey varjo_PropertyKey_GazeIPDEstimate = 0xA010
static

float. IPD distance estimate in millimeters.

◆ varjo_PropertyKey_HMDConnected

const varjo_PropertyKey varjo_PropertyKey_HMDConnected = 0xE001
static

boolean. Is HMD connected.

◆ varjo_PropertyKey_HMDProductName

const varjo_PropertyKey varjo_PropertyKey_HMDProductName = 0xE002
static

string. Product name.

◆ varjo_PropertyKey_HMDSerialNumber

const varjo_PropertyKey varjo_PropertyKey_HMDSerialNumber = 0xE003
static

string. Product serial number.

◆ varjo_PropertyKey_Invalid

const varjo_PropertyKey varjo_PropertyKey_Invalid = 0x0
static

Invalid property key.

◆ varjo_PropertyKey_MRAvailable

const varjo_PropertyKey varjo_PropertyKey_MRAvailable = 0xD000
static

boolean. Is Mixed Reality capable hardware present.

◆ varjo_RenderAPI_D3D11

const varjo_RenderAPI varjo_RenderAPI_D3D11 = 0x1
static

Direct3D11 rendering API.

◆ varjo_RenderAPI_D3D12

const varjo_RenderAPI varjo_RenderAPI_D3D12 = 0x3
static

Direct3D12 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_ShadingRate_1x1

const varjo_ShadingRate varjo_ShadingRate_1x1 = 5
static

◆ varjo_ShadingRate_1x2

const varjo_ShadingRate varjo_ShadingRate_1x2 = 6
static

◆ varjo_ShadingRate_2x1

const varjo_ShadingRate varjo_ShadingRate_2x1 = 7
static

◆ varjo_ShadingRate_2x2

const varjo_ShadingRate varjo_ShadingRate_2x2 = 8
static

◆ varjo_ShadingRate_2x4

const varjo_ShadingRate varjo_ShadingRate_2x4 = 9
static

◆ varjo_ShadingRate_4x2

const varjo_ShadingRate varjo_ShadingRate_4x2 = 10
static

◆ varjo_ShadingRate_4x4

const varjo_ShadingRate varjo_ShadingRate_4x4 = 11
static

◆ varjo_ShadingRate_Cull

const varjo_ShadingRate varjo_ShadingRate_Cull = 0
static

◆ varjo_ShadingRate_X16PerPixel

const varjo_ShadingRate varjo_ShadingRate_X16PerPixel = 1
static

◆ varjo_ShadingRate_X2PerPixel

const varjo_ShadingRate varjo_ShadingRate_X2PerPixel = 4
static

◆ varjo_ShadingRate_X4PerPixel

const varjo_ShadingRate varjo_ShadingRate_X4PerPixel = 3
static

◆ varjo_ShadingRate_X8PerPixel

const varjo_ShadingRate varjo_ShadingRate_X8PerPixel = 2
static

◆ varjo_TextureFormat_B8G8R8A8_SRGB

const varjo_TextureFormat varjo_TextureFormat_B8G8R8A8_SRGB = 2
static

sRgb 8-bit BGRA format

◆ varjo_TextureFormat_INVALID

const varjo_TextureFormat varjo_TextureFormat_INVALID = 0
static

Invalid format.

◆ varjo_TextureFormat_NV12

const varjo_TextureFormat varjo_TextureFormat_NV12
static
Initial value:
=
13

YUV 4:2:0 semi-planar in NV12 format (8bit Y plane, 8+8bit interleaved UV plane in half resolution)

◆ varjo_TextureFormat_R32_FLOAT

const varjo_TextureFormat varjo_TextureFormat_R32_FLOAT = 10
static

Single channel 32-bit float format.

◆ varjo_TextureFormat_R32_UINT

const varjo_TextureFormat varjo_TextureFormat_R32_UINT = 11
static

Single channel 32-bit uint format.

◆ varjo_TextureFormat_R8G8B8A8_SRGB

const varjo_TextureFormat varjo_TextureFormat_R8G8B8A8_SRGB = 1
static

sRgb 8-bit RGBA format

◆ varjo_TextureFormat_R8G8B8A8_UNORM

const varjo_TextureFormat varjo_TextureFormat_R8G8B8A8_UNORM = 9
static

Rgb 8-bit RGBA format.

◆ varjo_TextureFormat_RGBA16_FLOAT

const varjo_TextureFormat varjo_TextureFormat_RGBA16_FLOAT = 6
static

RGBA 16 bit floating point.

◆ varjo_TextureFormat_YUV422

const varjo_TextureFormat varjo_TextureFormat_YUV422 = 5
static

YUV 4:2:2 semi-planar, 8bit Y plane, 8+8bit interleaved UV plane.

◆ varjo_TextureSize_Type_BestQuality

const varjo_TextureSize_Type varjo_TextureSize_Type_BestQuality = 0

Maximum resolution which provides best possible quality.

◆ varjo_TextureSize_Type_BestQuality_Mask

const varjo_TextureSize_Type_Mask varjo_TextureSize_Type_BestQuality_Mask = 0x1

Bitmask for BestQuality texture size type.

◆ varjo_TextureSize_Type_DynamicFoveation

const varjo_TextureSize_Type varjo_TextureSize_Type_DynamicFoveation = 2

Best resolution for foveation mode.

◆ varjo_TextureSize_Type_DynamicFoveation_Mask

const varjo_TextureSize_Type_Mask varjo_TextureSize_Type_DynamicFoveation_Mask = 0x4

Bitmask for DynamicFoveation texture size type.

◆ varjo_TextureSize_Type_Recommended

const varjo_TextureSize_Type varjo_TextureSize_Type_Recommended
Initial value:
=
1

Recommended resolution, may not be as large as best quality but still provides great visual results.

◆ varjo_TextureSize_Type_Recommended_Mask

const varjo_TextureSize_Type_Mask varjo_TextureSize_Type_Recommended_Mask = 0x2

Bitmask for Recommended texture size type.

◆ varjo_TextureSize_Type_Stereo

const varjo_TextureSize_Type varjo_TextureSize_Type_Stereo = 3

Resolution for stereo mode.

◆ varjo_TextureSize_Type_Stereo_Mask

const varjo_TextureSize_Type_Mask varjo_TextureSize_Type_Stereo_Mask = 0x8

Bitmask for Stereo texture size type.

◆ varjo_True

const varjo_Bool varjo_True = 1
static

◆ varjo_VariableRateShadingFlag_Gaze

const varjo_VariableRateShadingFlags varjo_VariableRateShadingFlag_Gaze = 2

Generates VRS map taking gaze into account.

◆ varjo_VariableRateShadingFlag_GazeCombined

const varjo_VariableRateShadingFlags varjo_VariableRateShadingFlag_GazeCombined
Initial value:
=
4

Generates VRS map taking gaze into account with left and right gaze on one viewport.

◆ varjo_VariableRateShadingFlag_None

const varjo_VariableRateShadingFlags varjo_VariableRateShadingFlag_None = 0

◆ varjo_VariableRateShadingFlag_OcclusionMap

const varjo_VariableRateShadingFlags varjo_VariableRateShadingFlag_OcclusionMap
Initial value:
=
8

Generates VRS with coarsest shading rate in corners which are not visible.

◆ varjo_VariableRateShadingFlag_Stereo

const varjo_VariableRateShadingFlags varjo_VariableRateShadingFlag_Stereo = 1

Generates VRS map for stereo mode (2 views).

◆ varjo_VelocityTextureFormat_R8G8B8A8_UINT

const varjo_TextureFormat varjo_VelocityTextureFormat_R8G8B8A8_UINT = 12
static

Two 16-bit integers packed into 4 bytes.

◆ 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.