 |
Varjo Native Experimental SDK
|
|
Go to the documentation of this file.
3 #ifndef VARJO_MR_EXPERIMENTAL_H
4 #define VARJO_MR_EXPERIMENTAL_H
11 #if defined __cplusplus
225 int32_t numTextureIndices,
const char* constantBufferData, int32_t constantBufferSize);
436 struct varjo_Session* session,
const struct varjo_Vector3Di* positions, int32_t count);
466 #if defined __cplusplus
469 #endif // VARJO_MR_EXPERIMENTAL_H
VARJO_EXPERIMENTAL_API void varjo_MRReleasePointCloudSnapshot(struct varjo_Session *session, varjo_PointCloudSnapshotId id)
Release snapshot.
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
Contents of a 3D reconstruction chunks.
Definition: Varjo_types_mr_experimental.h:411
VARJO_EXPERIMENTAL_API void varjo_MRSetShader(struct varjo_Session *session, varjo_ShaderType shaderType, varjo_Bool enabled)
Turn shader on/off.
int64_t varjo_Nanoseconds
Time in nanoseconds.
Definition: Varjo_types.h:147
Environment 3D reconstruction configuration parameters.
Definition: Varjo_types_mr_experimental.h:286
VARJO_EXPERIMENTAL_API struct varjo_MeshReconstructionConfig varjo_MRGetMeshReconstructionConfig(struct varjo_Session *session)
Get currently applied 3D reconstruction meshing configuration.
VARJO_EXPERIMENTAL_API varjo_Bool varjo_MRGetPointCloudDelta(struct varjo_Session *session, varjo_PointCloudSnapshotId id, struct varjo_PointCloudDeltaContent *content)
Get the oldest delta that is built on top of the given snapshot and that has not yet been released.
VARJO_EXPERIMENTAL_API void varjo_MRUnlockMeshChunkContentsBuffer(struct varjo_Session *session, varjo_MeshChunkContentsBufferId id)
Unlock already locked chunk contents buffer.
VARJO_EXPERIMENTAL_API void varjo_MRGLConfigureShader(struct varjo_Session *session, varjo_ShaderType shaderType, const struct varjo_ShaderConfig *config, const char *shaderData, int32_t shaderSize)
Configure the shader and the input layout with OpenGL texture support.
VARJO_EXPERIMENTAL_API void varjo_MRGetMeshChunkDescriptions(struct varjo_Session *session, varjo_Nanoseconds updatedAfter, struct varjo_MeshChunkDescription *buffer, int32_t bufferSize, int32_t *chunkCount)
Get all reconstruction mesh chunks updated after a given timestamp.
int64_t varjo_VideoDepthTestBehavior
Video depth test behavior constants.
Definition: Varjo_types_mr_experimental.h:94
int64_t varjo_RenderAPI
Render API flags.
Definition: Varjo_types.h:238
int32_t varjo_Bool
Definition: Varjo_types.h:140
VARJO_EXPERIMENTAL_API void varjo_MRD3D12ConfigureShader(struct varjo_Session *session, struct ID3D12CommandQueue *commandQueue, varjo_ShaderType shaderType, const struct varjo_ShaderConfig *config, const char *shaderData, int32_t shaderSize)
Configure the shader and the input layout with D3D12 texture support.
VARJO_EXPERIMENTAL_API void varjo_MRSetVideoDepthTestRange(struct varjo_Session *session, double nearZ, double farZ)
Set video pass-through layer depth test range.
int64_t varjo_MeshChunkContentsBufferId
3D reconstruction mesh constants.
Definition: Varjo_types_mr_experimental.h:340
Environment 3D reconstruction mesh chunk description.
Definition: Varjo_types_mr_experimental.h:379
VARJO_EXPERIMENTAL_API void varjo_MREndPointCloudSnapshot(struct varjo_Session *session, varjo_PointCloudSnapshotId id)
Ends the snapshot, deltas will no longer be saved.
#define VARJO_EXPERIMENTAL_API
Definition: Varjo_export.h:45
VARJO_EXPERIMENTAL_API void varjo_MRSubmitShaderInputs(struct varjo_Session *session, varjo_ShaderType shaderType, const int32_t *textureIndices, int32_t numTextureIndices, const char *constantBufferData, int32_t constantBufferSize)
Submits updates made to input textures and/or constant buffer.
VARJO_EXPERIMENTAL_API void varjo_MRGetMeshChunkContentsBufferData(struct varjo_Session *session, varjo_MeshChunkContentsBufferId id, struct varjo_MeshChunkContent *chunkContents)
Get mesh chunk contents from mesh chunk contents buffer.
VARJO_EXPERIMENTAL_API varjo_PointCloudSnapshotStatus varjo_MRGetPointCloudSnapshotStatus(struct varjo_Session *session, varjo_PointCloudSnapshotId id)
Poll snapshot computation status.
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
VARJO_EXPERIMENTAL_API void varjo_MRD3D11ConfigureShader(struct varjo_Session *session, struct ID3D11Device *device, varjo_ShaderType shaderType, const struct varjo_ShaderConfig *config, const char *shaderData, int32_t shaderSize)
Configure the shader and the input layout with D3D11 texture support.
VARJO_EXPERIMENTAL_API void varjo_MRResetVideoDepthTest(struct varjo_Session *session)
Reset video pass-through layer depth test mode and range to defaults.
API-agnostic texture handle.
Definition: Varjo_types.h:512
VARJO_EXPERIMENTAL_API varjo_PointCloudSnapshotId varjo_MRBeginPointCloudSnapshot(struct varjo_Session *session)
Schedule a snapshot to be captured the next time point cloud is updated and start saving deltas.
VARJO_EXPERIMENTAL_API void varjo_MRSetVideoDepthTestMode(struct varjo_Session *session, varjo_VideoDepthTestMode mode, varjo_VideoDepthTestBehavior behavior)
Set video pass-through layer depth test mode.
VARJO_EXPERIMENTAL_API void varjo_MRSetReconstruction(struct varjo_Session *session, varjo_Bool enabled)
Start or stop 3D reconstruction.
VARJO_EXPERIMENTAL_API varjo_MeshChunkContentsBufferId varjo_MRLockMeshChunkContentsBuffer(struct varjo_Session *session, const struct varjo_Vector3Di *positions, int32_t count)
Lock mesh chunk contents buffer for reading.
Point cloud delta content.
Definition: Varjo_types_mr_experimental.h:323
VARJO_EXPERIMENTAL_API void varjo_MRGetPointCloudSnapshotContent(struct varjo_Session *session, varjo_PointCloudSnapshotId id, struct varjo_PointCloudSnapshotContent *content)
Get pointer to snapshot content.
int64_t varjo_PointCloudSnapshotId
Point cloud snapshot id.
Definition: Varjo_types_mr_experimental.h:272
VARJO_EXPERIMENTAL_API struct varjo_Texture varjo_MRAcquireShaderTexture(struct varjo_Session *session, varjo_ShaderType shaderType, int32_t index)
Acquires write lock of a shader input texture.
VARJO_EXPERIMENTAL_API struct varjo_ReconstructionConfig varjo_MRGetReconstructionConfig(struct varjo_Session *session)
Get currently applied 3D reconstruction configuration.
int64_t varjo_ShaderType
Post process shader type constants.
Definition: Varjo_types_mr_experimental.h:121
Definition: Varjo_types.h:379
VARJO_EXPERIMENTAL_API void varjo_MRGetSupportedShaderTextureFormats(struct varjo_Session *session, varjo_RenderAPI renderAPI, varjo_ShaderType shaderType, varjo_TextureFormat *formats, int32_t maxSize)
Get supported texture formats.
Shader configuration structure.
Definition: Varjo_types_mr_experimental.h:235
VARJO_EXPERIMENTAL_API void varjo_MRSetMeshReconstruction(struct varjo_Session *session, varjo_Bool enabled)
Start or stop 3D reconstruction meshing.
uint32_t varjo_DXGITextureFormat
Definition: Varjo_types_mr_experimental.h:244
Point cloud snapshot content.
Definition: Varjo_types_mr_experimental.h:313
VARJO_EXPERIMENTAL_API void varjo_MRReleaseShaderTexture(struct varjo_Session *session, varjo_ShaderType shaderType, int32_t index)
Releases the acquired input texture (varjo_MRAcquireShaderTexture).
VARJO_EXPERIMENTAL_API struct varjo_GLTextureFormat varjo_ToGLFormat(struct varjo_Session *session, varjo_TextureFormat format)
Converts varjo_TextureFormat to GL format.
VARJO_EXPERIMENTAL_API int32_t varjo_MRGetSupportedShaderTextureFormatCount(struct varjo_Session *session, varjo_RenderAPI renderAPI, varjo_ShaderType shaderType)
Get amount of supported texture formats.
Definition: Varjo_types_mr_experimental.h:249
VARJO_EXPERIMENTAL_API varjo_DXGITextureFormat varjo_ToDXGIFormat(struct varjo_Session *session, varjo_TextureFormat format)
Converts varjo_TextureFormat to DXGI_FORMAT.
VARJO_EXPERIMENTAL_API void varjo_MRPopPointCloudDelta(struct varjo_Session *session, varjo_PointCloudSnapshotId id)
Release the oldest delta that is built on top of the given snapshot.