XRSceneSegmentationSubsystem
↳ extends UnityEngine.SubsystemsImplementation.SubsystemWithProvider
Defines an interface for interacting with semantic segmentation functionality.
Declaration
public class XRSceneSegmentationSubsystem : SubsystemWithProvider<XRSceneSegmentationSubsystem, XRSceneSegmentationSubsystemDescriptor, Provider>, ISubsystemWithModelMetadataConstructors
public XRSceneSegmentationSubsystem()
Summary
Properties
| Name | Type | Summary |
|---|---|---|
| readonly IsMetadataAvailable | bool | True if channel names are available. The current implementation has this ready immediately, but this method is required by the ISubsytemWithModelMetadata parent class, should be reworked in the future. |
| readonly LatestFrameId | Nullable<uint> | Returns the frame id of the most recent semantic segmentation prediction. |
| SuppressionMaskChannels | HashSet<SceneSegmentationChannel> | - |
| TargetFrameRate | uint | Specifies the target frame rate for the platform to target running semantic segmentation inference at. |
Methods
| Name | Type | Summary |
|---|---|---|
| GetChannels | IReadOnlyList<SceneSegmentationChannel> | Get a list of the semantic channels for the current semantic model. |
| static Register | bool | Register the descriptor for the semantics subsystem implementation. |
| TryAcquirePackedSceneSegmentationChannelsCpuImage | bool | Acquire the latest packed semantic channels XRCpuImage. |
| TryAcquireSceneSegmentationChannelCpuImage | bool | Acquire the latest semantic channel CPU image. |
| TryAcquireSuppressionMaskCpuImage | bool | Acquire the latest suppression mask XRCpuImage. |
| TryGetPackedSceneSegmentationChannels | bool | Get the packed semantics texture descriptor. |
| TryGetSceneSegmentationChannel | bool | Get the XRTextureDescriptor for the specified semantic channel. |
| TryGetSuppressionMaskTexture | bool | Get a semantic suppression texture descriptor. |
| TryResetChannelConfidenceThresholds | bool | Resets the confidence thresholds for all semantic channels to the default values from the current model. |
| TrySetChannelConfidenceThresholds | bool | Sets the confidence thresholds used for including the specified semantic channels in the packed semantic channel buffer. |
Relationships
derived: NsdkSceneSegmentationSubsystem
implements: ISubsystemWithModelMetadata
Construct the subsystem by creating the functionality provider.