Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.XRSubsystems ←XRSceneSegmentationSubsystem

TryGetPackedSceneSegmentationChannels

Get the packed semantics texture descriptor.

Declaration​

public bool TryGetPackedSceneSegmentationChannels(out XRTextureDescriptor packedSceneSegmentationDescriptor, out Matrix4x4 samplerMatrix, Nullable<XRCameraParams> cameraParams = null)

Summary​

Get the packed semantics texture descriptor.

Returns​

true if the packed semantics texture descriptor is available and is returned. Otherwise, false.

Throws​

  • NotSupportedException — Thrown if the implementation does not support packed semantics texture.

Parameters​

NameTypeSummary
packedSceneSegmentationDescriptorXRTextureDescriptor
The resulting semantic channel texture descriptor, if available.
samplerMatrixMatrix4x4
The matrix that transforms from normalized viewport coordinates to normalized texture coordinates.
cameraParamsNullable<XRCameraParams>
Describes the viewport the texture is to be displayed on.