struct SemanticsTexture
(Niantic.Lightship.AR.Semantics.ARSemanticSegmentationManager.SemanticsTexture)
Overview
A type that holds a semantic segmentation texture along with its associated metadata for warping.
struct SemanticsTexture {
// fields
LightshipExternalTexture ExternalTexture;
Matrix4x4 SamplerMatrix;
XRCameraParams CameraParams;
readonly bool IsOutOfDate => LastUpdatedFrameId != Time.frameCount;
int LastUpdatedFrameId;
// methods
void Reset();
};
Detailed Documentation
A type that holds a semantic segmentation texture along with its associated metadata for warping.
Fields
IsOutOfDate
readonly bool IsOutOfDate => LastUpdatedFrameId != Time.frameCount
True if the texture has not been updated this frame.
Methods
Reset
void Reset()
Disposes of the external texture and resets metadata.