 |
Varjo Native Experimental SDK
|
|
Go to the documentation of this file.
3 #ifndef VARJO_TYPES_MR_EXPERIMENTAL_H
4 #define VARJO_TYPES_MR_EXPERIMENTAL_H
14 #if defined __cplusplus
422 #if defined __cplusplus
426 #endif // VARJO_TYPES_MR_EXPERIMENTAL_H
uint32_t indexConfidence
(index << 8) | (confidence & 0xFF);
Definition: Varjo_types_mr_experimental.h:302
Environment 3D reconstruction mesh configuration parameters.
Definition: Varjo_types_mr_experimental.h:363
int64_t varjo_VideoDepthTestMode
Video depth test mode constants.
Definition: Varjo_types_mr_experimental.h:72
Definition: Varjo_types_mr_experimental.h:206
Contents of a 3D reconstruction chunks.
Definition: Varjo_types_mr_experimental.h:411
uint32_t chunksPerMeter
Chunk resolution of x chunks per meter means each cubic meter is divided into x^3 chunks.
Definition: Varjo_types_mr_experimental.h:365
static const varjo_Error varjo_Error_ChunkContentsBufferInvalidId
Definition: Varjo_types_mr_experimental.h:55
int64_t varjo_Nanoseconds
Time in nanoseconds.
Definition: Varjo_types.h:147
Supported attribute formats for mesh vertex normals.
Definition: Varjo_types_mr_experimental.h:397
int64_t varjo_ShaderInputLayout
Post process shader input layout versioning for shader types.
Definition: Varjo_types_mr_experimental.h:134
Environment 3D reconstruction configuration parameters.
Definition: Varjo_types_mr_experimental.h:286
static const varjo_PropertyKey varjo_PropertyKey_ReconstructionAvailable
3D reconstruction status properties.
Definition: Varjo_types_mr_experimental.h:267
uint32_t * triangleIndices
The i:th triangle is formed by vertices with indices triangleIndices[i*3], triangleIndices[i*3+1],...
Definition: Varjo_types_mr_experimental.h:415
varjo_TextureFormat format
Definition: Varjo_types_mr_experimental.h:207
varjo_Nanoseconds timestamp
Snapshot timestamp matching the latest VST frame used for updating the data.
Definition: Varjo_types_mr_experimental.h:317
varjo_ShaderFlags_VideoPostProcess inputFlags
Shader input flags.
Definition: Varjo_types_mr_experimental.h:217
struct varjo_Vector3Df * normals32f
Definition: Varjo_types_mr_experimental.h:405
static const varjo_Error varjo_Error_InvalidShaderFlags
Definition: Varjo_types_mr_experimental.h:38
uint32_t reserved[13]
Definition: Varjo_types_mr_experimental.h:369
Wrapper for different types of shader parameters.
Definition: Varjo_types_mr_experimental.h:227
struct varjo_Vector3Df * colors32f
Definition: Varjo_types_mr_experimental.h:398
static const varjo_Error varjo_Error_InvalidShaderSize
Definition: Varjo_types_mr_experimental.h:39
static const int64_t varjo_PointCloudSnapshotId_Invalid
Definition: Varjo_types_mr_experimental.h:273
int32_t sequenceNumber
Sequence number measured in reconstruction iterations.
Definition: Varjo_types_mr_experimental.h:316
static const varjo_Error varjo_Error_InvalidConstantBufferSize
Definition: Varjo_types_mr_experimental.h:30
static const varjo_Error varjo_Error_InvalidVideoDepthTestMode
Video Depth Test error codes.
Definition: Varjo_types_mr_experimental.h:47
static const varjo_VideoDepthTestMode varjo_VideoDepthTestMode_LimitedRange
Video depth test is limited to given range if no application provides depth test range through varjo_...
Definition: Varjo_types_mr_experimental.h:82
uint32_t positionZradius
float16 / float16
Definition: Varjo_types_mr_experimental.h:307
uint32_t maxTrianglesPerChunk
Maximum number of triangles a mesh chunk may contain.
Definition: Varjo_types_mr_experimental.h:367
static const varjo_VideoDepthTestBehavior varjo_VideoDepthTestBehavior_CombineRanges
Combine both video depth test range and application layer ranges.
Definition: Varjo_types_mr_experimental.h:111
static const varjo_Error varjo_Error_ChunkContentsBufferAlreadyLocked
3D reconstruction error codes.
Definition: Varjo_types_mr_experimental.h:53
int64_t varjo_VertexAttribute
Definition: Varjo_types_mr_experimental.h:344
static const varjo_VideoDepthTestBehavior varjo_VideoDepthTestBehavior_PreferLayerRange
Prefer depth test range from application layer over video range.
Definition: Varjo_types_mr_experimental.h:101
int64_t varjo_VideoDepthTestBehavior
Video depth test behavior constants.
Definition: Varjo_types_mr_experimental.h:94
varjo_ShaderInputLayout inputLayout
Shader input layout version.
Definition: Varjo_types_mr_experimental.h:237
uint64_t height
Definition: Varjo_types_mr_experimental.h:209
varjo_VertexAttribute normal
Definition: Varjo_types_mr_experimental.h:356
static const int64_t varjo_PointCloudSnapshotStatus_Pending
Snapshot capture has not yet finished.
Definition: Varjo_types_mr_experimental.h:280
varjo_VertexAttribute color
Definition: Varjo_types_mr_experimental.h:355
int64_t computeBlockSize
Compute shader block size. Valid values: 8 or 16.
Definition: Varjo_types_mr_experimental.h:218
static const varjo_Error varjo_Error_InvalidVideoDepthTestRange
Definition: Varjo_types_mr_experimental.h:48
static const varjo_VideoDepthTestMode varjo_VideoDepthTestMode_ForcedRange
Depth testing is forced and limited to given range.
Definition: Varjo_types_mr_experimental.h:89
static const varjo_ChunkContentsBufferId varjo_ChunkContentsBufferId_Invalid
Definition: Varjo_types_mr_experimental.h:262
int32_t framerate
Target number of reconstruction updates per second.
Definition: Varjo_types_mr_experimental.h:287
int64_t reserved[128]
Reserved for future use.
Definition: Varjo_types_mr_experimental.h:229
static const varjo_Error varjo_Error_InvalidIndexCount
Definition: Varjo_types_mr_experimental.h:41
struct varjo_PointCloudPoint * points
Array of points.
Definition: Varjo_types_mr_experimental.h:314
int64_t varjo_MeshChunkContentsBufferId
3D reconstruction mesh constants.
Definition: Varjo_types_mr_experimental.h:340
int64_t varjo_PropertyKey
System status properties.
Definition: Varjo_types.h:180
static const varjo_Error varjo_Error_InvalidTextureIndex
Definition: Varjo_types_mr_experimental.h:33
Environment 3D reconstruction mesh chunk description.
Definition: Varjo_types_mr_experimental.h:379
static const varjo_MeshChunkContentsBufferId varjo_MeshChunkContentsBufferId_Invalid
Definition: Varjo_types_mr_experimental.h:341
static const varjo_Error varjo_Error_InvalidShaderType
Shader error codes.
Definition: Varjo_types_mr_experimental.h:25
struct varjo_PointCloudPoint * changedPoints
Array of points which have been updated.
Definition: Varjo_types_mr_experimental.h:324
static const varjo_Error varjo_Error_InvalidTextureDimensions
Definition: Varjo_types_mr_experimental.h:31
int32_t sequenceNumber
Sequence number measured in reconstruction iterations.
Definition: Varjo_types_mr_experimental.h:329
int32_t maxSurfelIndex
Maximum value of index field in any of the points.
Definition: Varjo_types_mr_experimental.h:328
int32_t removedPointCount
Number of removed points in removedPointIds array.
Definition: Varjo_types_mr_experimental.h:327
varjo_Nanoseconds updateTimestamp
Timestamp the chunk last changed.
Definition: Varjo_types_mr_experimental.h:381
static const varjo_Error varjo_Error_TextureNotAcquired
Definition: Varjo_types_mr_experimental.h:34
static const varjo_Error varjo_Error_RenderAPINotInitialized
Definition: Varjo_types_mr_experimental.h:37
Post process shader info structure defining shader properties and inputs for video post process shade...
Definition: Varjo_types_mr_experimental.h:216
uint64_t width
Definition: Varjo_types_mr_experimental.h:208
static const varjo_VideoDepthTestMode varjo_VideoDepthTestMode_Full
Video depth test range is not limited.
Definition: Varjo_types_mr_experimental.h:77
uint32_t maxChunks
Maximum number of non-empty chunks that may exist simultaneously.
Definition: Varjo_types_mr_experimental.h:368
uint32_t baseFormat
Base texture format (GLenum type)
Definition: Varjo_types_mr_experimental.h:250
uint32_t maxVerticesPerChunk
Maximum number of vertices a mesh chunk may contain.
Definition: Varjo_types_mr_experimental.h:366
struct varjo_ShaderParams_VideoPostProcess videoPostProcess
Parameters for varjo_ShaderType_VideoPostProcess.
Definition: Varjo_types_mr_experimental.h:228
uint32_t normalZcolorR
float16 / float16
Definition: Varjo_types_mr_experimental.h:304
varjo_Nanoseconds timestamp
Delta timestamp matching the latest VST frame used for updating the data.
Definition: Varjo_types_mr_experimental.h:330
static const varjo_LockType varjo_LockType_VideoPostProcessShader
Lock for video pass through post processing shader.
Definition: Varjo_types_mr_experimental.h:62
Data point which belongs to the 3D reconstruction.
Definition: Varjo_types_mr_experimental.h:301
Supported attribute formats for mesh vertex colors.
Definition: Varjo_types_mr_experimental.h:390
uint32_t colorBG
float16 / float16
Definition: Varjo_types_mr_experimental.h:305
int64_t varjo_TextureFormat
Definition: Varjo_types.h:216
int64_t varjo_PointCloudSnapshotStatus
Point cloud snapshot computation status.
Definition: Varjo_types_mr_experimental.h:278
union varjo_MeshVertexColorArray vertexColors
Vertex RGB color. See varjo_MeshReconstructionConfig for the format.
Definition: Varjo_types_mr_experimental.h:417
static const varjo_LockType varjo_LockType_VideoDepthTest
Lock for video depth test modes and ranges.
Definition: Varjo_types_mr_experimental.h:63
int64_t varjo_ShaderFormat
Post process shader format constants.
Definition: Varjo_types_mr_experimental.h:127
varjo_VertexAttribute position
Definition: Varjo_types_mr_experimental.h:354
static const varjo_ShaderType varjo_ShaderType_VideoPostProcess
Definition: Varjo_types_mr_experimental.h:122
int64_t constantBufferSize
Constant buffer size in bytes. Must be divisible by 16.
Definition: Varjo_types_mr_experimental.h:220
int32_t reserved[31]
Definition: Varjo_types_mr_experimental.h:288
union varjo_ShaderParams params
Shader parameters.
Definition: Varjo_types_mr_experimental.h:238
static const varjo_ShaderFormat varjo_ShaderFormat_None
Definition: Varjo_types_mr_experimental.h:128
struct varjo_Vector3Df * positions32f
Definition: Varjo_types_mr_experimental.h:391
uint32_t internalFormat
Internal texture format (GLenum type)
Definition: Varjo_types_mr_experimental.h:251
int64_t samplingMargin
Amount of lines left as margin for sampling kernel. Valid values [0, 64].
Definition: Varjo_types_mr_experimental.h:219
static const varjo_Error varjo_Error_ChunkContentsBufferNotLocked
Definition: Varjo_types_mr_experimental.h:54
struct varjo_TextureConfig textures[16]
Input texture configurations.
Definition: Varjo_types_mr_experimental.h:221
Supported attribute formats for mesh vertex normals.
Definition: Varjo_types_mr_experimental.h:404
static const varjo_Error varjo_Error_TexturesLocked
Definition: Varjo_types_mr_experimental.h:35
static const varjo_Error varjo_Error_TextureLockFailed
Definition: Varjo_types_mr_experimental.h:42
Point cloud delta content.
Definition: Varjo_types_mr_experimental.h:323
static const varjo_ShaderFormat varjo_ShaderFormat_DxComputeBlob
Definition: Varjo_types_mr_experimental.h:129
static const varjo_Error varjo_Error_InvalidSamplingMargin
Definition: Varjo_types_mr_experimental.h:29
uint32_t reserved[34]
Definition: Varjo_types_mr_experimental.h:384
uint32_t vertexCount
Number of vertices in the mesh chunk.
Definition: Varjo_types_mr_experimental.h:382
int64_t varjo_Error
Definition: Varjo_types.h:13
static const int64_t varjo_PointCloudSnapshotStatus_Ready
Snapshot is ready and can be accessed with GetPointCloudSnapshotContent.
Definition: Varjo_types_mr_experimental.h:281
int64_t varjo_PointCloudSnapshotId
Point cloud snapshot id.
Definition: Varjo_types_mr_experimental.h:272
static const varjo_ShaderFlags_VideoPostProcess varjo_ShaderFlag_VideoPostProcess_None
Definition: Varjo_types_mr_experimental.h:204
int32_t varjo_ChunkContentsBufferId
3D reconstruction constants.
Definition: Varjo_types_mr_experimental.h:261
static const varjo_Error varjo_Error_InvalidTextureFormat
Definition: Varjo_types_mr_experimental.h:32
uint32_t reserved[18]
Definition: Varjo_types_mr_experimental.h:419
union varjo_MeshVertexNormalArray vertexNormals
Vertex normal vectors. See varjo_MeshReconstructionConfig for the format.
Definition: Varjo_types_mr_experimental.h:418
struct varjo_Vector3Di position
Chunk position inside an integer grid. Real-world resolution defined by varjo_MeshReconstructionConfi...
Definition: Varjo_types_mr_experimental.h:380
uint32_t normalXY
float16 / float16
Definition: Varjo_types_mr_experimental.h:303
union varjo_MeshVertexPositionArray vertexPositions
Vertex positions in global coordinates. See varjo_MeshReconstructionConfig for the format.
Definition: Varjo_types_mr_experimental.h:416
uint32_t triangleCount
Number of triangles in the mesh chunk.
Definition: Varjo_types_mr_experimental.h:383
int64_t varjo_ShaderType
Post process shader type constants.
Definition: Varjo_types_mr_experimental.h:121
Definition: Varjo_types.h:370
Definition: Varjo_types.h:379
static const varjo_Error varjo_Error_InvalidInputLayout
Definition: Varjo_types_mr_experimental.h:27
Shader configuration structure.
Definition: Varjo_types_mr_experimental.h:235
struct varjo_MeshChunkDescription description
Same description which can be fetched with varjo_getChunkDescriptions.
Definition: Varjo_types_mr_experimental.h:414
uint32_t varjo_DXGITextureFormat
Definition: Varjo_types_mr_experimental.h:244
uint32_t positionXY
float16 / float16
Definition: Varjo_types_mr_experimental.h:306
static const varjo_Error varjo_Error_InvalidShader
Definition: Varjo_types_mr_experimental.h:40
int32_t changedPointCount
Number of points in changedPoints array.
Definition: Varjo_types_mr_experimental.h:326
Point cloud snapshot content.
Definition: Varjo_types_mr_experimental.h:313
static const varjo_VideoDepthTestBehavior varjo_VideoDepthTestBehavior_PreferVideoRange
Prefer video depth test range over application layer ranges.
Definition: Varjo_types_mr_experimental.h:106
varjo_ShaderFormat format
Shader format.
Definition: Varjo_types_mr_experimental.h:236
int64_t reserved[13]
Definition: Varjo_types_mr_experimental.h:357
int32_t * removedPointIds
Array of point ids which have been removed.
Definition: Varjo_types_mr_experimental.h:325
int64_t varjo_ShaderFlags_VideoPostProcess
Post process shader input flags.
Definition: Varjo_types_mr_experimental.h:203
static const varjo_Error varjo_Error_PointCloudSnapshotInvalidId
Definition: Varjo_types_mr_experimental.h:56
Definition: Varjo_types_mr_experimental.h:249
static const varjo_Error varjo_Error_InvalidShaderFormat
Definition: Varjo_types_mr_experimental.h:26
static const varjo_VertexAttribute varjo_VertexAttribute_float32
Definition: Varjo_types_mr_experimental.h:346
static const varjo_Error varjo_Error_InvalidComputeBlockSize
Definition: Varjo_types_mr_experimental.h:28
struct varjo_VertexFormat vertexFormat
Mesh vertex attribute formats.
Definition: Varjo_types_mr_experimental.h:364
static const varjo_Error varjo_Error_InvalidConstantBuffer
Definition: Varjo_types_mr_experimental.h:36
int32_t pointCount
Number of points in the array.
Definition: Varjo_types_mr_experimental.h:315
static const varjo_ShaderInputLayout varjo_ShaderInputLayout_VideoPostProcess_V2
This layout has these built-in inputs and outputs:
Definition: Varjo_types_mr_experimental.h:198
int64_t varjo_LockType
Mixed reality lock types.
Definition: Varjo_types_mr.h:17
static const int64_t varjo_PointCloudSnapshotStatus_Invalid
Snapshot does not exist or has been released.
Definition: Varjo_types_mr_experimental.h:279