class Provider
(Niantic.Lightship.AR.XRSubsystems.XRSemanticsSubsystem.Provider)
Overview
The provider which will service the XRSemanticsSubsystem.
class Provider: SubsystemProvider< XRSemanticsSubsystem > {
public:
// fields
? uint LatestFrameId => throw new NotSupportedException("Getting the latest frame id is not supported by this implementation");
bool IsMetadataAvailable => throw new NotSupportedException("Getting if metadata is available is not supported by this implementation");
// properties
uint TargetFrameRate;
// methods
virtual bool TryPrepareSubsystem();
virtual bool TryGetSemanticChannel(
string channelName,
out XRTextureDescriptor semanticChannelDescriptor,
out Matrix4x4 samplerMatrix,
XRCameraParams? cameraParams = null
);
virtual bool TryAcquireSemanticChannelCpuImage(
string channelName,
out XRCpuImage cpuImage,
out Matrix4x4 samplerMatrix,
XRCameraParams? cameraParams = null
);
virtual bool TryGetPackedSemanticChannels(
out XRTextureDescriptor packedSemanticsDescriptor,
out Matrix4x4 samplerMatrix,
XRCameraParams? cameraParams = null
);
virtual bool TryAcquirePackedSemanticChannelsCpuImage(
out XRCpuImage cpuImage,
out Matrix4x4 samplerMatrix,
XRCameraParams? cameraParams = null
);
virtual bool TryGetChannelNames(out IReadOnlyList<string> names);
virtual bool TrySetChannelConfidenceThresholds(Dictionary<string, float> channelConfidenceThresholds);
virtual bool TryResetChannelConfidenceThresholds();
};
Detailed Documentation
The provider which will service the XRSemanticsSubsystem.
Properties
TargetFrameRate
uint TargetFrameRate
Property to be implemented by the provider to get or set the frame rate for the platform's semantic segmentation feature.
The requested frame rate in frames per second.