|
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;
195 #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:75
int64_t frameNumber
The frame number of the frame being submitted.
Definition: Varjo_types_layers.h:176
struct varjo_LayerHeader header
The layer header.
Definition: Varjo_types_layers.h:157
static const varjo_LayerFlags varjo_LayerFlag_UsingOcclusionMesh
Signal that occlusion mesh is in use.
Definition: Varjo_types_layers.h:49
static const varjo_Space varjo_SpaceLocal
The local space, world-locked origin.
Definition: Varjo_types_layers.h:57
varjo_LayerFlags flags
Flags for this layer.
Definition: Varjo_types_layers.h:71
A varjo_LayerMultiProjView extension that defines range for which the depth test is enabled.
Definition: Varjo_types_layers.h:113
static const varjo_LayerFlags varjo_LayerFlag_ChromaKeyMasking
Layer is masked by video see through chroma key if flag is given.
Definition: Varjo_types_layers.h:50
int32_t width
Width of the input rectangle in pixels.
Definition: Varjo_types_layers.h:32
Swap chain configuration structure.
Definition: Varjo_types_layers.h:16
View Extension header.
Definition: Varjo_types_layers.h:82
static const varjo_ViewExtensionType varjo_ViewExtensionVelocityType
Definition: Varjo_types_layers.h:77
varjo_Space space
The reference space for this layer.
Definition: Varjo_types_layers.h:161
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:192
struct varjo_SwapChainViewport viewport
Image source for the velocity surface.
Definition: Varjo_types_layers.h:135
double farZ
Positive distance in meters.
Definition: Varjo_types_layers.h:119
A structure describing the list of layers that the application submits to the compositor each frame.
Definition: Varjo_types_layers.h:171
int32_t varjo_Bool
Definition: Varjo_types.h:133
struct varjo_ViewExtension header
Extension header, with type = varjo_ViewExtensionVelocityType.
Definition: Varjo_types_layers.h:128
int64_t varjo_LayerType
Definition: Varjo_types_layers.h:38
static const varjo_LayerFlags varjo_LayerFlag_InvertAlpha
Invert alpha channel before blending.
Definition: Varjo_types_layers.h:48
varjo_LayerType type
The actual type of the layer; currently, the only supported type is varjo_LayerMultiProjType.
Definition: Varjo_types_layers.h:69
int64_t varjo_LayerFlags
Definition: Varjo_types_layers.h:42
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:84
double nearZ
Positive distance in meters.
Definition: Varjo_types_layers.h:101
static const varjo_LayerFlags varjo_LayerFlag_Foveated
Indicate to compositor that layer was rendered with foveation.
Definition: Varjo_types_layers.h:51
struct varjo_ViewExtension * next
Optional pointer to the next extension; allows chaining multiple extensions into a single view.
Definition: Varjo_types_layers.h:86
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:145
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:95
int32_t viewCount
The amount of entries in the views array.
Definition: Varjo_types_layers.h:163
double maxDepth
Largest depth value allowed in the depth surface, typically 1.0.
Definition: Varjo_types_layers.h:99
int64_t varjo_ViewExtensionType
Definition: Varjo_types_layers.h:74
static const varjo_Space varjo_SpaceView
Reference space relative to the user's head.
Definition: Varjo_types_layers.h:62
int32_t textureHeight
Texture height in pixels.
Definition: Varjo_types_layers.h:20
int64_t varjo_TextureFormat
Definition: Varjo_types.h:206
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:133
double velocityScale
Scale multiplier for all velocity vectors in the surface, so that after the scaling,...
Definition: Varjo_types_layers.h:131
static const varjo_LayerFlags varjo_LayerFlagNone
Default layer rendering.
Definition: Varjo_types_layers.h:44
int64_t reserved
Definition: Varjo_types_layers.h:177
int64_t varjo_Space
Definition: Varjo_types_layers.h:53
A single view in a Multi-projection layer.
Definition: Varjo_types_layers.h:141
struct varjo_SwapChainViewport viewport
Image source for the depth surface.
Definition: Varjo_types_layers.h:105
Layer type describing a set of planar projected images rendered from the perspective of each eye.
Definition: Varjo_types_layers.h:155
Double precision 4x4 matrix.
Definition: Varjo_types.h:293
struct varjo_LayerMultiProjView * views
Array of views to be rendered.
Definition: Varjo_types_layers.h:165
Swap chain image source rectangle.
Definition: Varjo_types_layers.h:28
struct varjo_ViewExtension header
Extension header, with type = varjo_ViewExtensionDepthTestRangeType.
Definition: Varjo_types_layers.h:115
static const varjo_LayerFlags varjo_LayerFlag_BlendMode_AlphaBlend
Set blend mode to be alpha blend.
Definition: Varjo_types_layers.h:46
A varjo_LayerMultiProjView extension that allows submission of a depth surface alongside the color su...
Definition: Varjo_types_layers.h:93
static const varjo_LayerType varjo_LayerMultiProjType
Layer type enum corresponding to varjo_LayerMultiProj.
Definition: Varjo_types_layers.h:40
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:180
double farZ
Positive distance in meters.
Definition: Varjo_types_layers.h:103
static const varjo_ViewExtensionType varjo_ViewExtensionDepthTestRangeType
Definition: Varjo_types_layers.h:76
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:117
struct varjo_Matrix view
The view matrix this view was rendered with.
Definition: Varjo_types_layers.h:149
struct varjo_Matrix projection
The projection matrix this view was rendered with.
Definition: Varjo_types_layers.h:147
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:126
double minDepth
Smallest depth value allowed in the depth surface, typically 0.0.
Definition: Varjo_types_layers.h:97
static const varjo_LayerFlags varjo_LayerFlag_DepthTesting
Set depth testing to enabled.
Definition: Varjo_types_layers.h:47
struct varjo_SwapChainViewport viewport
Image source for this view.
Definition: Varjo_types_layers.h:151