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

Provider

↳ extends UnityEngine.SubsystemsImplementation.SubsystemProvider
The provider which will service the XRSceneSegmentationSubsystem.

Declaration

public abstract class Provider : SubsystemProvider<XRSceneSegmentationSubsystem>

Properties

NameTypeSummary
readonly LatestFrameIdNullable<uint>
-
SuppressionMaskChannelsHashSet<SceneSegmentationChannel>
Property to be implemented by the provider to get or set the list of suppression channels for the platform's semantic
segmentation feature.
TargetFrameRateuint
Property to be implemented by the provider to get or set the frame rate for the platform's semantic
segmentation feature.

Methods

NameTypeSummary
GetChannelsIReadOnlyList<SceneSegmentationChannel>
Method to be implemented by the provider to get a list of the semantic channels for the current
semantic model.
TryAcquirePackedSceneSegmentationChannelsCpuImagebool
Acquire the latest packed semantic channels XRCpuImage.
TryAcquireSceneSegmentationChannelCpuImagebool
Acquire the latest semantic channel CPU image.
TryAcquireSuppressionMaskCpuImagebool
Acquire the latest suppression mask XRCpuImage.
TryGetPackedSceneSegmentationChannelsbool
Get the packed semantics texture descriptor.
TryGetSceneSegmentationChannelbool
Get the XRTextureDescriptor for the specified semantic channel.
TryGetSuppressionMaskTexturebool
Get a semantic suppression texture descriptor.
TryPrepareSubsystembool
If the semantic segmentation model is ready, prepare the subsystem's data structures.
TryResetChannelConfidenceThresholdsbool
Resets the confidence thresholds for all semantic channels to the default values from the current model.
TrySetChannelConfidenceThresholdsbool
Sets the confidence threshold for including the specified semantic channel in the packed semantic
channel buffer.