 |
Varjo Native SDK
|
|
Go to the documentation of this file.
3 #ifndef VARJO_TYPES_LAYERS_H
4 #define VARJO_TYPES_LAYERS_H
9 #if defined __cplusplus
25 struct varjo_SwapChain;
251 #if defined __cplusplus
varjo_TextureFormat textureFormat
Texture format of the swap chain images.
Definition: Varjo_types_layers.h:17
int32_t arrayIndex
Texture array slice (if the swap chain is a texture array), otherwise 0.
Definition: Varjo_types_layers.h:34
static const varjo_ViewExtensionType varjo_ViewExtensionDepthType
Definition: Varjo_types_layers.h:82
int64_t frameNumber
The frame number of the frame being submitted.
Definition: Varjo_types_layers.h:232
static const varjo_BlendControlMaskingMode varjo_BlendControlMaskingMode_Reduced
Show VST content in masked area, elsewhere use chroma keying (or plain VST if not active).
Definition: Varjo_types_layers.h:163
struct varjo_LayerHeader header
The layer header.
Definition: Varjo_types_layers.h:213
static const varjo_LayerFlags varjo_LayerFlag_UsingOcclusionMesh
Signal that occlusion mesh is in use.
Definition: Varjo_types_layers.h:56
int64_t varjo_BlendControlDebugMode
Debug mode type.
Definition: Varjo_types_layers.h:170
static const varjo_Space varjo_SpaceLocal
The local space, world-locked origin.
Definition: Varjo_types_layers.h:64
varjo_LayerFlags flags
Flags for this layer.
Definition: Varjo_types_layers.h:78
A varjo_LayerMultiProjView extension that defines range for which the depth test is enabled.
Definition: Varjo_types_layers.h:129
static const varjo_LayerFlags varjo_LayerFlag_ChromaKeyMasking
Layer is masked by video pass through chroma key if flag is given.
Definition: Varjo_types_layers.h:57
int32_t width
Width of the input rectangle in pixels.
Definition: Varjo_types_layers.h:32
static const varjo_BlendControlMaskingMode varjo_BlendControlMaskingMode_Depth_Test_Or_Always_Pass
Do VST depth test in masked area, elsewhere always pass depth test (show VR).
Definition: Varjo_types_layers.h:167
static const varjo_BlendControlMaskingMode varjo_BlendControlMaskingMode_Depth_Test_Or_Always_Fail
Do VST depth test in masked area, elsewhere always fail depth test (show VST).
Definition: Varjo_types_layers.h:165
Swap chain configuration structure.
Definition: Varjo_types_layers.h:16
static const varjo_BlendControlMaskingMode varjo_BlendControlMaskingMode_Off
No masking.
Definition: Varjo_types_layers.h:157
View Extension header.
Definition: Varjo_types_layers.h:93
varjo_BlendControlDebugMode debugMode
Debug visualization mode.
Definition: Varjo_types_layers.h:189
static const varjo_ViewExtensionType varjo_ViewExtensionVelocityType
Definition: Varjo_types_layers.h:84
varjo_Space space
The reference space for this layer.
Definition: Varjo_types_layers.h:217
int32_t textureWidth
Texture width in pixels.
Definition: Varjo_types_layers.h:19
struct varjo_LayerHeader ** layers
Array of pointers to layer structures, one for each layer.
Definition: Varjo_types_layers.h:248
struct varjo_SwapChainViewport viewport
Image source for the velocity surface.
Definition: Varjo_types_layers.h:151
struct varjo_ViewExtension header
Extension header, with type = varjo_ViewExtensionBlendControlMaskType.
Definition: Varjo_types_layers.h:183
double farZ
Positive distance in meters.
Definition: Varjo_types_layers.h:135
A structure describing the list of layers that the application submits to the compositor each frame.
Definition: Varjo_types_layers.h:227
int32_t varjo_Bool
Definition: Varjo_types.h:140
struct varjo_ViewExtension header
Extension header, with type = varjo_ViewExtensionVelocityType.
Definition: Varjo_types_layers.h:144
int64_t varjo_LayerType
Definition: Varjo_types_layers.h:45
static const varjo_BlendControlDebugMode varjo_BlendControlDebugMode_ShowColors
Visualize mask rgb values (meaningful only with RGBA texture format).
Definition: Varjo_types_layers.h:176
static const varjo_LayerFlags varjo_LayerFlag_InvertAlpha
Invert alpha channel before blending.
Definition: Varjo_types_layers.h:55
varjo_LayerType type
The actual type of the layer; currently, the only supported type is varjo_LayerMultiProjType.
Definition: Varjo_types_layers.h:76
int64_t varjo_LayerFlags
Definition: Varjo_types_layers.h:49
struct varjo_SwapChain * swapChain
The swap chain to retrieve the image from.
Definition: Varjo_types_layers.h:29
varjo_ViewExtensionType type
View extension type.
Definition: Varjo_types_layers.h:95
double nearZ
Positive distance in meters.
Definition: Varjo_types_layers.h:112
static const varjo_LayerFlags varjo_LayerFlag_Foveated
Indicate to compositor that layer was rendered with foveation.
Definition: Varjo_types_layers.h:58
struct varjo_ViewExtension * next
Optional pointer to the next extension; allows chaining multiple extensions into a single view.
Definition: Varjo_types_layers.h:97
static const varjo_BlendControlMaskingMode varjo_BlendControlMaskingMode_Restricted
Use chroma keying in masked area (or plain VST if not active), elsewhere show VR content.
Definition: Varjo_types_layers.h:159
static const varjo_BlendControlDebugMode varjo_BlendControlDebugMode_ShowMask
Visualize mask alpha value.
Definition: Varjo_types_layers.h:174
varjo_Bool forceGlobalViewOffset
Force VR view offset for all clients when masking enabled.
Definition: Varjo_types_layers.h:185
int32_t textureArraySize
Texture array size, or 1 if creating a plain 2D texture swap chain.
Definition: Varjo_types_layers.h:21
struct varjo_ViewExtension * extension
An optional extension structure, or nullptr if none.
Definition: Varjo_types_layers.h:201
int32_t reserved
Reserved for future use.
Definition: Varjo_types_layers.h:35
struct varjo_ViewExtension header
Extension header, with type = varjo_ViewExtensionDepthType.
Definition: Varjo_types_layers.h:106
int32_t viewCount
The amount of entries in the views array.
Definition: Varjo_types_layers.h:219
static const varjo_ViewExtensionType varjo_ViewExtensionBlendControlMaskType
Definition: Varjo_types_layers.h:88
double maxDepth
Largest depth value allowed in the depth surface, typically 1.0.
Definition: Varjo_types_layers.h:110
int64_t varjo_ViewExtensionType
Definition: Varjo_types_layers.h:81
varjo_BlendControlMaskingMode maskingMode
Masking mode used.
Definition: Varjo_types_layers.h:187
static const varjo_Space varjo_SpaceView
Reference space relative to the user's head.
Definition: Varjo_types_layers.h:69
int32_t textureHeight
Texture height in pixels.
Definition: Varjo_types_layers.h:20
int64_t varjo_TextureFormat
Definition: Varjo_types.h:216
int32_t reserved
Reserved for future use.
Definition: Varjo_types_layers.h:42
int32_t x
X offset within the swap chain for the input rectangle.
Definition: Varjo_types_layers.h:30
varjo_Bool includesHMDMotion
Flag to indicate if motion vectors include also the HMD motion or not.
Definition: Varjo_types_layers.h:149
double velocityScale
Scale multiplier for all velocity vectors in the surface, so that after the scaling,...
Definition: Varjo_types_layers.h:147
static const varjo_BlendControlMaskingMode varjo_BlendControlMaskingMode_Extended
Show VR content in masked area, elsewhere use chroma keying (or plain VST if not active).
Definition: Varjo_types_layers.h:161
static const varjo_LayerFlags varjo_LayerFlagNone
Default layer rendering.
Definition: Varjo_types_layers.h:51
int64_t reserved
Definition: Varjo_types_layers.h:233
int64_t varjo_Space
Definition: Varjo_types_layers.h:60
int64_t reserved[32]
Reserved for future use.
Definition: Varjo_types_layers.h:191
A single view in a Multi-projection layer.
Definition: Varjo_types_layers.h:197
struct varjo_SwapChainViewport viewport
The viewport where mirror view should be rendered.
Definition: Varjo_types_layers.h:40
struct varjo_SwapChainViewport viewport
Image source for the depth surface.
Definition: Varjo_types_layers.h:116
Layer type describing a set of planar projected images rendered from the perspective of each eye.
Definition: Varjo_types_layers.h:211
Double precision 4x4 matrix.
Definition: Varjo_types.h:330
struct varjo_LayerMultiProjView * views
Array of views to be rendered.
Definition: Varjo_types_layers.h:221
Swap chain image source rectangle.
Definition: Varjo_types_layers.h:28
int32_t viewIndex
Index of the view.
Definition: Varjo_types_layers.h:41
struct varjo_ViewExtension header
Extension header, with type = varjo_ViewExtensionDepthTestRangeType.
Definition: Varjo_types_layers.h:131
static const varjo_LayerFlags varjo_LayerFlag_BlendMode_AlphaBlend
Set blend mode to be alpha blend.
Definition: Varjo_types_layers.h:53
A varjo_LayerMultiProjView extension that allows submission of a depth surface alongside the color su...
Definition: Varjo_types_layers.h:104
static const varjo_LayerType varjo_LayerMultiProjType
Layer type enum corresponding to varjo_LayerMultiProj.
Definition: Varjo_types_layers.h:47
Describes mirror view.
Definition: Varjo_types_layers.h:39
A varjo_LayerMultiProjView extension that defines blend control masking layer flags.
Definition: Varjo_types_layers.h:181
int64_t varjo_BlendControlMaskingMode
Masking mode type.
Definition: Varjo_types_layers.h:155
int32_t numberOfTextures
Number of textures in the swap chain.
Definition: Varjo_types_layers.h:18
int32_t layerCount
The number of elements in the layers array below.
Definition: Varjo_types_layers.h:236
double farZ
Positive distance in meters.
Definition: Varjo_types_layers.h:114
static const varjo_ViewExtensionType varjo_ViewExtensionDepthTestRangeType
Definition: Varjo_types_layers.h:83
int32_t height
Height of the input rectangle in pixels.
Definition: Varjo_types_layers.h:33
double nearZ
Positive distance in meters.
Definition: Varjo_types_layers.h:133
struct varjo_Matrix view
The view matrix this view was rendered with.
Definition: Varjo_types_layers.h:205
struct varjo_Matrix projection
The projection matrix this view was rendered with.
Definition: Varjo_types_layers.h:203
int32_t y
Y offset within the swap chain for the input rectangle.
Definition: Varjo_types_layers.h:31
A varjo_LayerMultiProjView extension that allows submission of a pixel velocity surface alongside the...
Definition: Varjo_types_layers.h:142
double minDepth
Smallest depth value allowed in the depth surface, typically 0.0.
Definition: Varjo_types_layers.h:108
static const varjo_LayerFlags varjo_LayerFlag_DepthTesting
Set depth testing to enabled.
Definition: Varjo_types_layers.h:54
static const varjo_BlendControlDebugMode varjo_BlendControlDebugMode_Off
No debug visualization.
Definition: Varjo_types_layers.h:172
struct varjo_SwapChainViewport viewport
Image source for this view.
Definition: Varjo_types_layers.h:207